Hi,
I was able to bring up a window for “MyApplication1” and fill some text fields.
But, for the password field (text field 3 of group 1 of tab group 1 of window 1), somehow I cannot fill it.
In the previous block of my AppleScript, I already defined user_username and user_password.
If I try some text statement like “keystroke user_password”, it seems to enter it there, so it’s not the the problem with the value of user_password.
Anyone know the possible reason and the resolution?
Thanks!
- Life Learner
tell application “System Events” to tell process “MyApplication1”
delay 1
click menu bar item 1 of menu bar 2
click
click menu item “Show Panel” of menu 1 of menu bar item 1 of menu bar 2
delay 1
tell text field 1 of group 1 of tab group 1 of window 1
set value to user_username
end tell
delay 1
tell text field 3 of group 1 of tab group 1 of window 1
set value to user_password
end tell
delay 1
tell checkbox 1 of group 1 of tab group 1 of window 1
if not (its value as boolean) then click
end tell
tell text field 2 of group 1 of tab group 1 of window 1
set value to “portal.mycompany.com”
end tell
delay 1
click button 1 of group 1 of tab group 1 of window 1
delay 1
click button 1 of window 1
end tell