Rodrigo2237 Posted June 9, 2009 Share Posted June 9, 2009 How do I check the checkbox that is in a jsp file? and the Frame does not have a name? this file is the main source </table> <!-- tree start --> <IFRAME src="createDataSourceWizardPages/SelectMonitoredProperties_inner.jsp" width="80%" height="300" scrolling="auto" frameborder="0" class="tableData"> [Your user agent does not support frames or is currently configured not to display frames] </IFRAME> <!-- tree end --> After the file load in frame open this file with checkbox that I Need to check </table> </td> <td align= "center" > <!-- 2, 2--> <a id="0-195-0"></a> <a id="row749"></a> <input type= "checkbox" name="include0-195-0" onclick = 'window.parent.doIncludeAction(this.checked);java script:include("0-195-0")' /></td> </tr> <tr class="row1"> <td align="left"> <table border="0" cellspacing="0" cellpadding="0"> <tr valign="middle" class="row1"> <td></td> <td><img src="/revenueoffice/images/menu_bar.gif" alt="" border="0"></td> <td><img src="/revenueoffice/images/menu_tee.gif" alt="" border="0" ></td> <td colspan="1"><img src="arrowRight.gif" alt="" border="0"> <span class="tree-control-unselected-left">duration</span></td> </tr> </table> </td> <td align= "center" > <!-- 2, 2--> <a id="0-195-1"></a> <a id="row750"></a> <input type= "checkbox" name="include0-195-1" onclick = 'window.parent.doIncludeAction(this.checked);java script:include("0-195-1")' /></td> </tr> <tr class="row1"> <td align="left"> <table border="0" cellspacing="0" cellpadding="0"> <tr valign="middle" class="row1"> <td></td> <td><img src="/revenueoffice/images/menu_bar.gif" alt="" border="0"></td> <td><img src="/revenueoffice/images/menu_corner.gif" alt="" border="0" ></td> <td colspan="1"><img src="arrowRight.gif" alt="" border="0"> <span class="tree-control-unselected-left">value</span></td> </tr> </table> Follow the program I'm trying to build #include <IE.au3> #include <file.au3> $oIE = _IEAttach("Edit Data Source") $oCBs = _IEGetObjByName($oIE, "include0-195-1", -1) For $oCB In $oCBs If Not $oCB.disabled Then $oCB.checked = True Next Link to comment Share on other sites More sharing options...
DaleHohm Posted June 9, 2009 Share Posted June 9, 2009 If you cannot use _IEFrameGetObjByName, see _IEFrameGetCollection. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Valuater Posted June 9, 2009 Share Posted June 9, 2009 Welcome to the Autoit Forums Rod!! Might want to take a look at my IE Builder!! See "Great Programs" below 8) 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