From d9bef2cc1142afcec790dc49345b125044d65e27 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Mon, 9 Dec 2013 21:54:42 +0100 Subject: [PATCH] Sync with new Orange.pl website. --- sms.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.30.2