'/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