Sahi Documentation

Getting cell data from a table

To access the cell at row x and column y, you may use _cell(_table("<table_identifier>"), x-1, y-1).

We need to use x-1 and y-1 because the indexes are 0 based.

Let us say you want to get the text from the 4th row and 3rd column of a table.

To access its value, use _getText(_cell(_table("<table_identifier>"), 3, 2)).

NOTE: Do not use XPaths for this purpose. XPaths are brittle and we discourage using them.