Arvindh
Arvindh

Reputation: 21

UFT - How to get Cell Type or Value in Webtable

I need to get the cell type or value property in a Webtable by specifying the row and column. GetROproperty can give the value but row/column cannot be specified.

Upvotes: 2

Views: 2190

Answers (1)

Motti
Motti

Reputation: 114695

When working with a WebTable there are two ways to get into the cell:

  • ChildItem: Allows you to specify a row and column of the cell and an object type so you can get an (for example) Link that is in the specified cell. Then with that Link object in hand you can do whatever you want, including GetROProperty
  • Cell: Given a row and column, this returns the WebElement of the TD element that represents the cell which you can then use as a regular WebElement

Upvotes: 1

Related Questions