Micro Focus QTP (UFT) Forums
Howto Find WebTable Cell - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Howto Find WebTable Cell (/Thread-Howto-Find-WebTable-Cell)



Howto Find WebTable Cell - falvi - 05-14-2012

Hello

i want to get the webtable cell that contains a certain image but no text.
i have created the description of the image, and it's identified perfectly, i just want to obtain the cell which contains this very image.

any ideas?


RE: Howto Find WebTable Cell - sshukla12 - 05-14-2012

Hi,

If u r able to get the imgae using DP then use for loop for rows and colum
Code something like this:
Code:
For i=1 to Rowcount
For j=1 to ColCount
if Browser().Page().webTable().ChildItem(oDesc).exists
msgBox("Row:"&i)
msgBox("Colmnu:&j)
Next
Next

'ODesc-->Description for the image u have created.
This approach might help u.

Regards,
Sankalp


RE: Howto Find WebTable Cell - falvi - 05-14-2012

Thank you, let me try this Smile