Fro Productions(tm)
Join Date: May 2004
Location: London Town
|
If you give advice, please bear in mind that I have no Programming/AppleScript/Automator experience beyond the past few hours, so KIS! Thanks very much.
---------------------------------------------------------------- Short story: I am using Automator to try to automate the online renewal of my university library books to definitively avoid any late fees (up to £0.50 an hour!) and I am at the stage in my scripting where I want to automatically choose the second option in this drop down menu. The HTML for the "drop down menu" ("form item"? "pop up"? What is the correct name here?) is: Code:
<SELECT NAME="RENEWALLUBID">
<OPTION VALUE= >Renew checked items
<OPTION VALUE=1@LSEDB20040722004653>
Renew all items from London School of Economics & Political Science
</SELECT> Does anyone know of a script/combination of automator actions that can automatically do this for me?Thanks! ---------------------------------------------------------------- Long story: This is my Automator workflow so far. Key to Actions (1) - Finder finds the correct LSE Library html link in the Finder. (2) - Finder opens this LSE Library html link in Safari. (Disabled) - An AppleScript hides Safari so that the process is heretofore invisible. (3) - A pause here prevents errors resulting from pages not being rendered yet. (4) - The Ottomate "Click Link or Button in Current Webpage" action clicks the correct "My Account" html link. (I can't navigate to this in (1) becuase the "My Account" link is session sensitive.) (5) - A pause here prevents errors resulting from pages not being rendered yet. (6) - The Ottomate "Set Form Values in Current Webpage" action fills in my Library Barcode (user ID) (7) - The same action fills in my PIN (password). (8) - The same action fills in my Last Name. (9) - The "Click Link or Button in Current Webpage" action clicks the "Login" html link. (10) - A pause here prevents errors resulting from pages not being rendered yet. (Need Your help to choose the second option in the drop down please!) (11) - The "Click Link or Button in Current Webpage" action clicks the "Renew Items" html link. (Disabled) - An AppleScript quits Safari. Steps (1) - (4) Steps (5) - (9) Steps (10) - (11) ... According to PreFabUIBrowser, this is the reference of the "pop up button" (drop down menu): Code:
pop up button 1 of group 39 of UI element 1 of scroll area 1
of group 4 of window "http://catalogue.lse.ac.uk/cgi-bin/Pwebrecon.cgi" However, I don't see how UI scripting can work in this situation, because the number of books I will be borrowing at any one time will differ from the next, and so "group 39" will change to another number.I've spent all day way out of my depth, does anyone have any ideas on how to solve my specific problem? (I bet its really easy). I must say that I am surprised that Apple doesn't include in Automator, actions that click on buttons and drop down menus in webpages for you. Oh- one other thing: I would also like to make the entire process run in the background, without Safari ever becoming the foremost application. Any ideas on that front? Thanks one and all. Now, I'm gonna go fly around the world again... bouncy bouncy |
quote |
Selfish Heathen
Join Date: May 2004
Location: Zone of Pain
|
Quote:
|
|
quote |
Posting Rules | Navigation |
|
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Icon files on webpages | PKIDelirium | Programmer's Nook | 6 | 2005-11-28 12:26 |