I made an AppleScript to access a webpage and login. Well, at some point I need to click on a button to valid my vote. Here is what I get on that button :
<form method="post" action="/website/in/16">
<input type="submit" name="valid" value="Valider mon vote" class="btn btn-default" />
I thought it'd be easy to do it with Javascript, here is my code :
tell application "Safari"
do JavaScript "document.getElementsByName('valid').click();"
end tell
A click on the link to vote opens a webpage into the existing one, does it change anything for my problem?