tommytx Posted August 20, 2013 Share Posted August 20, 2013 Local $oInputs = _IETagNameGetCollection($oIE, "input") For $oInput In $oInputs if $oInput.value = "posts" then $oInput.checked = "checked" consolewrite($oInput.value & @CR) Next ;<input type="radio" name="content" value="all" checked="checked" /> All content</label></p> ;<input type="radio" name="content" value="posts" /> Posts</label></p> What am i doing wrong..I want to inspect all the inputs on the page and there are many...and find the one that has a value equal to "posts" and check the radio box associated with that particular input. On start as you can see the All Content is checked.. I want to switch to the one with value="posts" Thanks for any assistance. Tom Link to comment Share on other sites More sharing options...
dragan Posted August 20, 2013 Share Posted August 20, 2013 I would use: $oInput.checked = true Link to comment Share on other sites More sharing options...
Danp2 Posted August 20, 2013 Share Posted August 20, 2013 Is this a form element? If so, check out _IEFormElementRadioSelect. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
tommytx Posted August 20, 2013 Author Share Posted August 20, 2013 I tried true... let me go back and try true again... I think I tried "True" "true" and true and True.... but just to be sure will run it again... Yes it is encapulated in a form... will try that also.... It finds the value='post' just fine... but does not move the tick box... Thanks... will let you know.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now