Highlighted
Absent Member.. vzamoraz Absent Member..
Absent Member..
297 views

QTP/UFT support tip: How click on a webtable cell

There are some scenarios where a webtable has embedded controls on it and QTP/UFt is not able to perform a click over them.

You can use childitem method to perform click over this controls

 

Example:

Browser(<BROWSER NAME>).Page(<PAGE NAME>).WebTable(<WEBTABLE NAME>).ChildItem(<ROW>, <COL>, "WebElement", 0).click
example:
Browser("Browser").Page("Page").WebTable("WebTable").ChildItem("1","2", "WebElement", 0).click

Browser("Browser").Page("Page").WebTable("WebTable").ChildItem("1","2", "WebButton", 0).click

Browser("Browser").Page("Page").WebTable("WebTable").ChildItem("1","2", "Link", 0).click

 

 

Note: the last parameter "0"  indicates that click over the first controls of that type founded in the cell, since some times could be more than one control in the cell and then this parameter control the index of them.

 

 

Labels (1)
0 Likes
2 Replies
Absent Member.. disdainfull Absent Member..
Absent Member..

Re: QTP/UFT support tip: How click on a webtable cell

The <row> and <column> as a string is odd but VBscript shouldn't care if they can be evaluated as numbers.

0 Likes
Absent Member.. vzamoraz Absent Member..
Absent Member..

Re: QTP/UFT support tip: How click on a webtable cell

Yes, it works with ("") and without ("") for row and column parameters.

The vbscript engine pass the string number to a numeric value.

 

Best Regards.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.