borgsie Posted June 10, 2018 Share Posted June 10, 2018 I'm trying to select "Find Ip Range" in a dropdown menu. I been at this for a few days with no success so any help will be muchly appreciated. this is the HTML for the page. Link to comment Share on other sites More sharing options...
Danp2 Posted June 10, 2018 Share Posted June 10, 2018 Welcome to the forums. Suggest that you post the actual html, not a screenshot of it. Also, show us your code where you have tried to address this issue. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
borgsie Posted June 10, 2018 Author Share Posted June 10, 2018 Hey Dan , here is the info. Thanks This is my code: Local $oIE = _IEAttach("Select the reference") local $oForm = _IEFormGetObjByName($oIE, "2_form") Local $oQuery = _IEFormElementGetObjByName($oForm, "menuItem_5") _IEAction($oQuery, "click") This is a sbset of the HTML: </style> </head> <body class="cambridgeDesign"><div class="top" role="application"><ul class="nav" role="menubar"><li class="dropList downDirection fastSearch" id="menuItem_0" role="menuitem" aria-haspopup="true"><ul class="subMenu" role="menu" aria-haspopup="true" style="left: 7px; right: auto; display: none;" onmouseup="return beforeSubmitReturnUrlForm();" onclick="return submitReturnUrlForm(this,'2_form');"><li class="dropList" id="menuItem_5" role="menuitem"><ul class="subMenu" role="menu" aria-haspopup="true" style="left: auto; right: 190px; display: none;"><li role="menuitem"><a href="/inventory/explore/search.jsp?explorer_mode=enable&object=9093034860013388010&o=6072054679013940840&project=5040558799013664319&class=14002&class=14002"><span>Find IP Address</span></a></li></ul></li></ul></li></ul></div></body> </html> Link to comment Share on other sites More sharing options...
Danp2 Posted June 11, 2018 Share Posted June 11, 2018 You haven't shown us the actual form contents. AFAICS, the list items you are trying to access aren't located within the form. Latest Webdriver UDF Release Webdriver Wiki FAQs 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