Demo Web Table for Selenium Automation Practice
Demo Table 1
This table has 7 rows and 3 columns. So, the distribution of rows and columns even. We can assume this table as static table. This table is easy to automate.
Practice Exercise with solution code - Automate reading data from static web table with Selenium
Company | Contact | Country |
---|---|---|
Maria Anders | Germany | |
Meta | Francisco Chang | Mexico |
Microsoft | Roland Mendel | Austria |
Island Trading | Helen Bennett | UK |
Adobe | Yoshi Tannamuri | Canada |
Amazon | Giovanni Rovelli | Italy |
Demo Table 2
This table has un-even distribution of rows and columns, like last row has two columns only, but the other rows have 7 columns each. So, let's assume it as a dynamic table. This table is tougher task.
Practice Exercise with Solution Code - How to Handle Dynamic Web Table in Selenium Webdriver
Structure | Country | City | Height | Built | Rank | … | |
---|---|---|---|---|---|---|---|
Total | 4 buildings | ||||||
Burj Khalifa | UAE | Dubai | 829m | 2010 | 1 | ||
Clock Tower Hotel | Saudi Arabia | Mecca | 601m | 2012 | 2 | ||
Taipei 101 | Taiwan | Taipei | 509m | 2004 | 3 | ||
Financial Center | China | Shanghai | 492m | 2008 | 4 |
Selenium Practice Exercises for Demo Table 2 -
- Verify that there are only 4 structure values present in the table with Selenium
- Verify that 6th row of the table (Last Row) has only two columns with Selenium
- Find the tallest structure in the table with Selenium
Popular Tutorials:
You may also like Selenium Practice Exercises with Solution Code -
Follow Us
Feel free to ask queries or share your thoughts in comments or email us.
Comments
Post a Comment