Micro Focus QTP (UFT) Forums
WebTable - Select Row - 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: WebTable - Select Row (/Thread-WebTable-Select-Row)



WebTable - Select Row - linhke - 06-21-2010

Hi all,

When i select the row in the webtable by manual, the [Delete] and [Ship to this address] buttons was enabled and accessible. But when perform this action by QTP as:

Code:
Set Obj = rowser("Cyber").Page("AddressBook").WebTable("tblAddress").Object.rows(2)
Obj.Click

These button is still disabled, although the row was highlighted. I don't know why? So can anybody tell me the reason pls?

Thanks and BRs,
linhke


RE: WebTable - Select Row - rajeshwar - 06-21-2010

You can Check for the events (if any) that are fired.

There might be some events(like onblur,onmouseup) that are fired when you do it manually, which QTP is not able to simulate.

~Rajeshwar.


RE: WebTable - Select Row - linhke - 06-24-2010

I found the solution for this action:

Code:
Browser("B").Page("P").Frame("F").WebTable("T").Object.rows(i).cells(i).Click