Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

How to set a radio box on a web page using autoit.

$
0
0
I am having a problem getting a radio box on a page to check using autoit..
The below code is in fact accessing each radio box one by one but not checking them
I sorta made up the $oInput.status or is that a real status that I just lucked across..
am I almost right... or no..


Local $oInputs = _IETagNameGetCollection($oIE, "input")
For $oInput In $oInputs
if $oInput.Type = 'radio' then $oInput.status = 'checked'
Next

<input name="RB1" value="1" type="radio" >
<input name="RB2" value="0" type="radio">

I cannot set the value to 1, since I believe its status I want to set and not value..

Thanks.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>