GUI scripting: Beginner unable to fill a field text of a web page
GUI scripting: Beginner unable to fill a field text of a web page
- Subject: GUI scripting: Beginner unable to fill a field text of a web page
- From: Victor <email@hidden>
- Date: Tue, 13 Apr 2010 12:54:41 +0200
I'm an absolute beginner with Applescript. After the complete and attentive reading of "Applescript 1-2-3" and after installing UI Browser only last night, I'm now having a go at GUI Scripting inputing a userid (CODICE) and password (PIN) to login into my bank site (see the unrefined code below).
Now, while this code reaches text field 1 easily and fill it with the string "codice", it cannot repeat the same with field text 2 to write the string passw. As a matter of fact UI Browser screen reader while tells me the exact number of text field 1 (CODICE) says that there is some MISMATCH in the second field (PIN) . Please help Vittorio
get system attribute "sysv"
set codice to "123456" set passw to "654321"
tell application "Safari" activate open location paginaweb delay 2 --finishLoad end tell tell application "System Events" tell process "Safari" tell text field 1 of group 1 of UI element 1 of scroll area 1 of group 9 of UI element 1 of scroll area 1 of group 3 of window "Banca via Internet - UniCredit Banca di Roma" keystroke (codice) delay 1
end tell
tell text field 2 of group 1 of UI element 1 of scroll area 1 of group 9 of UI element 1 of scroll area 1 of group 3 of window "Banca via Internet - UniCredit Banca di Roma" keystroke (passw) end tell
end tell end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden