I am relatively new to the mac world and automator and need help with creating automator to open a web page within safari and then input specific text into 2 input fields. I have been able to open the web page in safari but am stuck on how to get specified text inputed into fields within the web page and then click a login button.
It has a drop down menu item called “Forms” that will give you the info you need.
set homePage to "your/url/here"
set jav to "document.form1.login_name.value='your_value';
document.form1.login_pass.value='your_pass';
document.form1.login.click();"
tell application "Safari"
--load your page here
tell document 1
set URL to homePage
--do JavaScript code
do JavaScript jav
end tell
end tell