Micro Focus QTP (UFT) Forums
Table is recognized as Web Element - 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: Table is recognized as Web Element (/Thread-Table-is-recognized-as-Web-Element)



Table is recognized as Web Element - Sharshi - 10-12-2010

Hi,

Table is recognized as Web Element and unable to perform any operations like
Row count,Get cell data, Column name and Select row etc….


Each row is taking as one web element. Ex: If there are 10 rows, it is taking as 10 web elements.
Code:
Code:
Browser("Browser").Page("Page").Frame("main").WebElement("WebTable").Click
Browser("Browser").Page("Page").Frame("main").WebElement("WebTable_2").Click
Browser("Browser").Page("Page").Frame("main").WebElement("WebTable_3").Click
We have Web and Java Add-ins.

Please provide me the workaround or solution.. It will be great.

Regards,
Harshi


RE: Table is recognized as Web Element - KavitaPriyaCR - 10-12-2010

Hi,

Try once using the object spy, i mean there will be parent just above the web element(the one which u have used here).
EX:
Browser >> Page >> WebTable >> WebTable >> ... >> WebElement
Make use of the immediate parent table, if available.