PDA

View Full Version : Applescript how to check radio button




redwgaontoy
Jun 13, 2013, 09:53 AM
I am trying to check a radio button on a webpage and I thought I could use keystoke tab and get the the button and then the return key but the return key does not select the button.

How to I select it? This is the page source code:
<input type="radio" name="ShipExport_SendEmail" value="0" checked>
<br />
<input type="radio" name="ShipExport_SendEmail" value="1"> <input type="text" size="40" name="ShipExport_Email" value="fun@redwagontoy.com">

So I would like the applescript to select the "ShipExport_SendEmmial" value = "1"



see.solve.
Jun 18, 2013, 08:35 AM
GUI scripting can be involved. I'd suggest using UI Browser (http://pfiddlesoft.com/uibrowser/index.html) to determine the correct way to reference the button you want to press.

You might also find the information on this forum thread (http://hintsforums.macworld.com/showthread.php?t=147503) useful.