Category: Data, selenium

Web tables or data tables are often used in scenarios where you need to display the information in a tabular format.

You’d often see such examples in e-commerce portals, where product specifications are displayed in a web table.

A WebDriverWait of 30 seconds is added to ensure that the loading of the Web Table (CLASS_NAME = w3-example) is complete before any operations are performed to handle the table in Selenium.

The output snapshot to read data in rows to handle table in Selenium is below: For column-wise access to handle table in Selenium, the rows remain constant whereas the column numbers are variable i.e. the columns are computed dynamically.

The intention of this test for this Selenium WebDriver tutorial is to look for the presence of an element in the web table.

Related Articles