Sync with new Orange.pl website.
authorRafał Długołęcki <kontakt@dlugolecki.net.pl>
Mon, 9 Dec 2013 20:54:42 +0000 (21:54 +0100)
committerRafał Długołęcki <kontakt@dlugolecki.net.pl>
Mon, 9 Dec 2013 20:54:42 +0000 (21:54 +0100)
sms.pl

diff --git a/sms.pl b/sms.pl
index 4104fbc92f781364ada8468a6fb50dd20d39d280..a4db93a866dba2636e147a7344f2b23a255f45a1 100755 (executable)
--- 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