...

/

Dynamic Data Extraction

Dynamic Data Extraction

Learn how to work with dynamic data extraction using Selenium.

Extracting a group of dynamic data

In testing, there are a number of scenarios when we have to deal with the extraction of dynamic data from websites before applying any meaningful operation to it. The following are the most common techniques, which we apply in our day-to-day life in Selenium testing.

Verify search results in order

The picture below shows a sortable table, i.e., the users can sort table columns in ascending or descending order by clicking the header.

Dynamic  data table with sorting utility
Dynamic data table with sorting utility

To verify the sorting order in Selenium, we need to extract all the data from the sorted column first. Only then, we can verify the data in the desired order. For example, in the above table, our sorted ...