Given an existing code block that used Description.Create to access web APP objects, that worked with a drop-down menu of WebElements to select one for a .Click , I modified the code block to use the WebList objects that were in the next web APP under test. It didn't work.
The new version is of the form:
Set objSite = Descripttion.Create
objSite("micclass").Value = "WebList"
objSite("class").Value = "site"
objSite("innerhtml").Value = ".*US-.*"
Set Siteobj = Browser("B").Page("P").Frame("F").ChildObjects
The above block of code resulted in 37 WebList items being selected. (Good!)
The debug "show me" block below worked fine, but did display a little crazy:
Browser("B").Page("P").Frame("F").WebList("site").Click 'open the drop-down menu
For i = 0 To Siteobj.count - 1 Step 1
Result = Siteobj(i).GetROProperty("innertext")
Using the line from the old WebElement code block that worked, I tried to us it for WebList dropdown menu:
It did not work.
Does anyone know how to make a selection from a WebList object?
Thanks in advance (TIA)