UI Scripting, Safari and text field
UI Scripting, Safari and text field
- Subject: UI Scripting, Safari and text field
- From: "Timothy K. Wilkinson" <email@hidden>
- Date: Thu, 08 Jan 2004 14:21:06 -0500
I'm trying to use the UI Scripting to set a text field of a web page to a
certain value.
Using PreFab's UI Browser I came up with this script:
tell application "System Events"
tell process "Safari"
set value of text field 1 of scroll area 1 of group 2 of window "Add
new user" to "some text"
end tell
end tell
This works on the surface. It puts the text into the field on the web page
and everything seems fine. However when you click on the field the text
disappears. If you don't select the field but just click the submit button
then a blank value is submitted.
What step am I missing to make that value stick in the web page?
Thanks,
Tim Wilkinson
ITC-ACHS
University of Virginia
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.