Dynamic Data Extraction
Explore various techniques to extract dynamic data in Selenium WebDriver tests. Understand how to handle sortable tables, verify uniqueness, filter visible rows, and apply regular expressions to capture dynamic text for robust test automation.
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.
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 column is ...