Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Selenium Webdriver- Selenium Locator and Action

Exercise 1: Web Tables – Get the value from any Cell and print it on the console.

1. Launch new Browser


2. Open URL “https://demo.guru99.com/test/web-table-element.php#”
3. Get the value from any Cell and print it on the console
4. Click on the link in Cell

Exercise 2: Web Tables-Print all the column values of expect Row

1. Launch new Browser


2. Open URL “https://demo.guru99.com/test/web-table-element.php#”
3. Print all the column values of expect Row
Exercise 3: Web Tables – Get number of Rows and number of Columns - using
findElements

Exercise 4: Interact with DatePicker


https://jqueryui.com/datepicker/#dropdown-month-year
Exercise 5: Interact with DateTime Picker

If we see the DOM of the DateTime Picker control, there will be only one input box for both
date and time.

So to handle this type of control first we will fill date without separating with delimiter,
i.e. if date is 09/25/2013, then we will pass 09252013 to the input box. Once done, we will
shift focus from date to time by pressing ‘tab’ & fill time.
If we need to fill 02:45 PM , we will pass it a ‘0245PM’ to the same input box. The code for
datepicker looks like this:
https://demo.guru99.com/test/#google_vignette

PLT SOLUTIONS

You might also like