Jump to content
borgsie

help with select an item in IE dropdown list

Recommended Posts

borgsie

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. 

image.png.16c0a4fd6188b010f63d4ad298b06e03.png

 

Share this post


Link to post
Share on other sites
Danp2

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.

Share this post


Link to post
Share on other sites
borgsie

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&amp;object=9093034860013388010&amp;o=6072054679013940840&amp;project=5040558799013664319&amp;class=14002&amp;class=14002"><span>Find IP Address</span></a></li></ul></li></ul></li></ul></div></body>
</html>


 

Share this post


Link to post
Share on other sites
Danp2

You haven't shown us the actual form contents. AFAICS, the list items you are trying to access aren't located within the form.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×