Demo Web Table for Practicing Selenium Webdriver

Below is a demo web table for practice Selenium Automation purpose. There are some practice assignments provided below this table. You can go through the assignments and automate.





StructureCountryCityHeightBuiltRank
Total4 buildings
Burj KhalifaUAEDubai829m20101
Clock Tower HotelSaudi ArabiaMecca601m20122
Taipei 101TaiwanTaipei509m20043
Financial CenterChinaShanghai492m20084


Assignment 1: Verify that there are only 4 structure values present.
  1. Read the 'Structure' column and find out the total number of structures present.
  2. Read the value of 'Total' column and match with the previous step.
Solution Hint:
  • Use list to store the structure values.
  • Find the length of the list  and match with the expected value.






Assignment 2: Read All the Values from the table row-wise and print them all

Solution Hint:
  • Use for loop to read all the values of the table.

Assignment 3: Verify that Burj Khalifa has a height of 829m (similar for other structures)



Assignment 4: Verify that 6th row (Last Row) has only two columns.

If you are able to write code for all the assignments, then share your code in the comments section. Your code will be include in this post.

Happy Learning!





Refer Selenium Webdriver Tutorials Series


Join Telegram channel at https://t.me/techlistic
Feel free to ask queries or share your thoughts in comments or email me.

Comments

Post a Comment

Popular Posts

10 Best Demo Websites for Automation Testing Practice

Assignment 5: Automate "User Registration" Process for E-commerce Website using Selenium

Assignment 1: Automate Browser Actions - Launch Browser, maximize window, validate title & close browser

Selenium WebDriver - Browser and Navigation Commands

Assignment 6: Automate "Buy Product" Functionality for E-commerce Website using Selenium