Re: can apple GUI scripter fill out and submit a web page?
Re: can apple GUI scripter fill out and submit a web page?
- Subject: Re: can apple GUI scripter fill out and submit a web page?
- From: julifos <email@hidden>
- Date: Sat, 17 May 2003 09:25:04 +0200
>
I need to fill out a web page programmatically for a point of sale
>
system to submit a charge card payment form. I'm not sure I can program
>
it in Java, and it is POST method, so I cannot simply construct and
>
send a fabricated URL.
You can. Type "man curl" in a Terminal window.
>
so I'd like the "gui scripter" to exactly emulate a user filling out a
>
web page and clicking "submit"
>
>
Is possible?
I'm not absolutelly sure. Anyway, I'd say you don't need it. Javascripting
posibilities offered by IE, Safari or Omniweb will make this a simple task:
set fillForm to "document.forms[0].elements[0].value='test'"
--> set value of first element of first form to "test"
tell app "Safari"
do javascript fillForm in document 1
do javascript "document.forms[0].submit()" --> submit ;-)
end tell
JJ
_______________________________________________
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.