Micro Focus QTP (UFT) Forums

Full Version: WebTable - Select Row
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
I found the solution for this action:

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