X-Git-Url: https://git.dlugolecki.net.pl/?p=sms.git;a=blobdiff_plain;f=sms.pl;fp=sms.pl;h=a4db93a866dba2636e147a7344f2b23a255f45a1;hp=4104fbc92f781364ada8468a6fb50dd20d39d280;hb=d9bef2cc1142afcec790dc49345b125044d65e27;hpb=41dcbd5ddd880c7bee0df7285d69f87394815a11 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