01-30-2011, 05:33 AM
Hi ,
Our application uses the WebElement ( drop down list box) and QTP does not seem to record that at all .
The Hirearchy is as follows ,
To set the value in Webedit(in readonly mode), we have to select a value from the list which is displayed only after clicking the Image(Expand).
The values in weblist are built as webelements which cannot be viewed from Object Spy .
I have tried descriptive programming and could identify the properties of webelements in the list.
But the problem is , I am not able to select the value(webelement) and observed that the HTML tag value of webelement is set as "OPTION"
I have tried following ways ,
And ,
Is there a way to select the drop down value from a WebElement ?
Thanks,
Jyotsna
Our application uses the WebElement ( drop down list box) and QTP does not seem to record that at all .
The Hirearchy is as follows ,
To set the value in Webedit(in readonly mode), we have to select a value from the list which is displayed only after clicking the Image(Expand).
The values in weblist are built as webelements which cannot be viewed from Object Spy .
I have tried descriptive programming and could identify the properties of webelements in the list.
But the problem is , I am not able to select the value(webelement) and observed that the HTML tag value of webelement is set as "OPTION"
I have tried following ways ,
Code:
Set ListElmt = Description.Create()
ListElmt("micclass").Value = "WebElement"
Set LstElmt1 = LstElmt.ChildObjects(ListElmt)
LstElmt1(1).FireEvent "ondblclick"
And ,
Code:
Browser("Home").Page("Page").WebElement("innertext:=BUSINESS CLASS DOMESTIC ONLY" , "index:=1").FireEvent "ondblclick"
Is there a way to select the drop down value from a WebElement ?
Thanks,
Jyotsna