Micro Focus QTP (UFT) Forums
QTP not selecting appropriate webelement from the webtable..Need Solution - 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: QTP not selecting appropriate webelement from the webtable..Need Solution (/Thread-QTP-not-selecting-appropriate-webelement-from-the-webtable-Need-Solution)

Pages: 1 2


RE: QTP not selecting appropriate webelement from the webtable..Need Solution - vIns - 04-28-2011

Hi.. I just wanted to know which object is returned in ur case and u say that whole table itself is getting highlighted.
I have used similar approach and it was an actual WebTable, it worked gr8. But u seem to have DataGrid.

So i am not sure if the WebTable test object can be used to identify the RO of GataGrid. Can u try using WbfGrid instead?
Sorry if it does not help and Plz let us know if you find the solution somehow


RE: QTP not selecting appropriate webelement from the webtable..Need Solution - Swetha_Bayya - 03-23-2016

Hi Saket,

for one of my scripts, I have tried using the same script as mentioned below:

1. get the row where your required text is there in the table using GetRowWithCellText
nRow =B().P().F().WebTable().GetRowWithCellText("AR1100000113")
2. set an object to the webelement of the row and required column
Set oElem = B().P().F().WebTable().childitem(nRow,4,"WebElement",0)
3. Click on webelement
oElem.Click

But then, its throwing "Object Required" error.

May I know, if I have missed anything here