Micro Focus QTP (UFT) Forums
Identification of Object in eb Table - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Identification of Object in eb Table (/Thread-Identification-of-Object-in-eb-Table)



Identification of Object in eb Table - MahalakshmiDevi - 06-10-2009

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.


RE: Identification of Object in eb Table - ursvinod - 06-16-2009

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...