Alodar Posted May 14, 2009 Share Posted May 14, 2009 So I have to automate a selection process of data from a website my company visits, but the radio options on the site aren't really radio options. example: In a table there is... <tr> <td class="tbDetail"> </td> <td class="tbDetail" colspan="5"> <span class="txtbox"><input id="ctl00_MainContent_T1Flag" type="radio" name="ctl00$MainContent$TTFlag" value="T1Flag" /><label for="ctl00_MainContent_T1Flag">Type 1</label></span> <span class="txtbox"><input id="ctl00_MainContent_T2Flag" type="radio" name="ctl00$MainContent$TTFlag" value="T2tFlag" /><label for="ctl00_MainContent_T2Flag">Type 2</label></span> <span class="txtbox"><input id="ctl00_MainContent_BothFlag" type="radio" name="ctl00$MainContent$TTFlag" value="BothFlag" checked="checked" /><label for="ctl00_MainContent_BothFlag">Both</label></span> </td> </tr> These are text boxes, with a 'type' of radio....how do I select them? using _IEFormElementRadioSelect won't work because they're not really radios. The scripting on the page works that once one is checked, the others are unchecked (although the checked="checked" thing never goes away). I'm having a bit of difficulty here, any ideas? thx. Link to comment Share on other sites More sharing options...
Alodar Posted May 14, 2009 Author Share Posted May 14, 2009 NM, I just realized I was completely retarding it out because the order was weird. <sigh> I wish we could delete our own threads? Link to comment Share on other sites More sharing options...
Juvigy Posted May 15, 2009 Share Posted May 15, 2009 I think you try to use a <input> tag of type radio. You can find all <input objects with this: $oDoc = _IEDocGetObj($oIE) $oArray = $oDoc.getElementsByTagName("input") 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