Framework for Automation QA Tests of duckduckgo web site based Java language
Prepere steps:
- in CommonActions class set the path to your chromedriver.exe ( 96+ chrome browser version ).
- in testng.xml file set the path to your duckduckgoTestFramework project folder
Implementation of the next test cases:
Case 1
- Go to https://duckduckgo.com/
- Select search text input
- Type word watermelons
- Validate that autocomplete dropdown has 8 elements
Case 2
- Go to https://duckduckgo.com/
- Select search text input
- Type word watermelons
- Submit the form – you get redirected to search results page
- Validate that there are 10 search results in left column and one result in right column
Case 3
- Go to https://duckduckgo.com/
- Select search text input
- Type word watermelons
- Submit the form – you get redirected to search results page
- Find “More results” button and click on it – you get more search results loadedу
- Validate that there total number of search results in left column is 20
- Validate that 10 original search result items in the left column are still there and didn’t change – by comparing content of h2 elements