Can you use IEAuto.dll to click Radio Buttons & Checkbox

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
spar108r
Newbie
Posts: 13
Joined: Tue Oct 24, 2006 12:10 am
Location: Toronto, Ontario, Canada

Can you use IEAuto.dll to click Radio Buttons & Checkbox

Post by spar108r » Thu Oct 26, 2006 4:13 pm

Hello support,

I was wondering is it possible to click on Radio Buttons using IEAuto.dll library, likewise for Checkboxes

For Radio Button, I'm assuming it's ClickTag and ref'ing the index
For Checkbox, I'm assuming it's FormFill

Are my assumptions correct? If not, please advise how I can go about achieveing this.

Thank you.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Oct 26, 2006 4:20 pm

Hi,

Yes, use ClickTag. E.g:

LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,CHECKBOX,str:TagValue

LibFunc>hIE,ClickTag,r,%IE[0]%,str:FrameName,str:FormName,INPUT,RADIO,str:TagValue

See the help for ClickTag:
'RADIO' : For Radio objects. If element belongs to specified form and value matches "element_name:element_value" the element is clicked.

'CHECKBOX': For checkboxes. Works as with RADIO.
Try it with WebRecorder and you'll see the code. As an example use WebRecorder and navigate to these pages and click on the radio/checkbox buttons:

http://www.htmlcodetutorial.com/forms/_ ... RADIO.html

http://www.htmlcodetutorial.com/forms/_ ... CKBOX.html
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

spar108r
Newbie
Posts: 13
Joined: Tue Oct 24, 2006 12:10 am
Location: Toronto, Ontario, Canada

Post by spar108r » Thu Oct 26, 2006 6:13 pm

Thank you Marcus. As always, much apprecitated.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts