Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Webelement with Html tag as OPTION
#1
Not Solved
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()
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic obj rep - get text in the class (html) marcio cravo moreira 0 2,146 05-26-2015, 06:58 PM
Last Post: marcio cravo moreira
  QTP not recognizing the webelement vidya2k2 3 3,433 04-06-2015, 10:36 PM
Last Post: babu123
  Identifying a WebGrid using Div Tag - Solved EnthusiasticLearner 2 3,517 01-06-2014, 09:27 PM
Last Post: EnthusiasticLearner
  regular expression in html sujaravi123 0 2,316 12-31-2013, 03:00 PM
Last Post: sujaravi123
  Excel to HTML results keerthi286 1 2,759 04-19-2013, 08:21 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)