WPath and Tables

For more general information about the WPath please read the WPath page.

 

When working with tables, using the plain WPath syntax may not be sufficient or handy. Because of this there is a small enhancement.

Let's start with a small sample:



Your test script has to change the amount of ordered JProfiler licenses to 4.

Simply do this by adding a column/row filter (syntax: [column;row]) to your WPath.

Command Parameter Optional Parameter
set [Quantity; JProfiler] 4

This will choose the setable located inside a column containing the text 'Quantity' and also inside a row containing the text 'JProfiler'.



For the table filter you have to use the whole cell text - in the example above [Quantity; Profi] or even [Quantity; JProf* ] will not work.

 

Filter by row/column

You can use this filter together with plain WPath criteria and also leave one of the filter coordinates empty like in the following sample.

Command Parameter Optional Parameter
click-on [; JProfiler] > Delete

This will choose all delete buttons on the page and than filter out all buttons not part of a row containing the text 'JProfiler'.



The same works for columns as well by just leaving out the second coordinate (and the delimiting semicolon if you like).