Micro Focus QTP (UFT) Forums

Full Version: Identification of Object in eb Table
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a web table with the following element.
The first element is identified as "Web Button". I want to parameterize the web Button because there would more than 100 web buttons.
QTP is not identifing the object, because the object acts both as button and jif image. I ahve attached screen shot along with this mail.
Screen 1 - Before clicking on the web button
Screen 2 - After clicking on web button

I want to parameteruze the object displayed left of the colum event name.
Hi,

I am not sure how you can parameterize the webbuttons and images inside a webtable.. but you can try this.


Code:
Count1 = Browser("").page("").Webtable("").childItemCount(row,column,"Webbutton")

For i = 0 to Count1
oWebButton = Browser("").page("").Webtable("").childItem(row,column,"Webbutton",cint(i))

oWebButton.Click ' Clicks the first(with index 0) webbutton in the webtable
a = oWebButton.GetRoproperty("html id")


Please try this...