QTP Webelement with Html tag as OPTION - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: QTP Webelement with Html tag as OPTION (/Thread-QTP-Webelement-with-Html-tag-as-OPTION) |
QTP Webelement with Html tag as OPTION - pjr - 01-30-2011 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 , Code: Set ListElmt = Description.Create() 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 |