07-27-2010, 03:25 PM
hello,
I try to use a descriptive element in order to parameterize a part of objet description (innerhtml for now)
When I use this descriptive line QTP gave me an error (Cannot identify the object "[ WebElement ]" (of class WebElement). Verify that this object's properties match an object currently displayed in your application.)
Click ==> KO
If I add this element to repository manually and add the same things for identification, it works
lets say add testObj in repository as WebElement using :
innertext => test
html tag => SPAN
class => dijitTreeLabel
.Click => it works
Where do I make an error ?
I try to use a descriptive element in order to parameterize a part of objet description (innerhtml for now)
When I use this descriptive line QTP gave me an error (Cannot identify the object "[ WebElement ]" (of class WebElement). Verify that this object's properties match an object currently displayed in your application.)
Code:
Browser("").Page("").WebElement("html tag:=SPAN, class:=dijitTreeLabel, innertext:=test").
If I add this element to repository manually and add the same things for identification, it works
lets say add testObj in repository as WebElement using :
innertext => test
html tag => SPAN
class => dijitTreeLabel
Code:
Browser("").Page("").WebElement("testObj")
Where do I make an error ?