QTP using Native Properties
♥ 0 |
I’m trying to use the Native Properties of an object on a website. I’ve used the Identification properties, but there are 6 different items on the site (only 2 are visible to the user) with the same ID properties. The only differences I’ve found so far are in the Native Properties. How do I use the Native Properties to set a variable? This is what I’ve done so far (all ID properties): Set Go=Description.Create() Go("micclass").Value="WebButton" Go("class").Value = "goButton" Go("type").Value = "submit" Set b=browser("title:=.*").Page("title:=.*").ChildObjects(Go) c=b.count msgbox c I tried using a Native Property that is definitely a characteristic native to this particular WebButton: Go("sourceIndex").Value = "453 but I’m not getting anything to return. I want to use the variable to descriptively program the click of a WebButton.
Marked as spam
|