Naveen AutomationLabs: Selenium Coding Challenge Series Solution!
Steps:
- go to this url -https://www.zoopla.co.uk/
- Input location London and click submit
- You will get a list of properties on that page.
- Print all the price values in sorted order (descending order) on the console
- I need to select the 5th property on that list (its changing every minute, so it’s dynamic)
- On the next page, there is a logo, name and telephone no of the agent. I need to click on the name link to get into the agent’s page.
- Once on that page, I need to check that the the properties listed there belong to the same mentioned agent on the page.
This framework is developed using Java TestNg framework with page factory design pattern. The page bases are defined under src/main and the tests are written under src/tests.
- Run tests.xml located under src/test/resources folder as a TestNg Suite.
- By default browser is set as chrome, can update to firefox by setting the browser property in tests.xml
- Can also run the tests by running as maven build.