From: Rafał Długołęcki Date: Mon, 9 Dec 2013 20:54:42 +0000 (+0100) Subject: Sync with new Orange.pl website. X-Git-Tag: 0.2~1 X-Git-Url: https://git.dlugolecki.net.pl/?p=sms.git;a=commitdiff_plain;h=d9bef2cc1142afcec790dc49345b125044d65e27 Sync with new Orange.pl website. --- diff --git a/sms.pl b/sms.pl index 4104fbc..a4db93a 100755 --- a/sms.pl +++ b/sms.pl @@ -36,12 +36,13 @@ $mech->submit_form( '/tp/core/profile/login/ProfileLoginFormHandler.value.password' => $config{password} } ); -$mech->follow_link( text => 'SMS'); +$mech->follow_link( text => 'Multi Box' ); +$mech->follow_link( text => 'SMS' ); my $dom = Mojo::DOM->new; $dom->parse($mech->content()); -my $send_url = $dom->find('div[id="top-buttons"] a')->[1]->attrs('href'); +my $send_url = $dom->find('div[id="top-buttons"] a')->[1]->attr('href'); $mech->get($send_url); # Using $mech->submit_form instead is not working, so don't change