- This repo has example codes with Selenium 4 features.
- Websites used for testing are: automationpractice.com, saucedemo.com, the-internet and owasp-juice-shop
- This repo uses Maven as build tool and TestNG testing framework to run the tests.
- I have tried to answer the below questions by providing working code example in this repo:
- How do I select a value from Table?
- How do I tick and untick checkboxes using selenium
- How do I right click using selenium?
- How do I drag and drop using selenium?
- How do I write code to login and logout using Selenium?
- How do I pass multiple test data value using DataProvider in tests?
- How do I mouse hover an element using selenium?
- How do I download a file using Selenium?
- How do I upload file using selenium?
- How do I press keys using selenium?
- How do I work with multiple Tab windows in selenium?
- How do I work with iFrames using Selenium?
- How do I double click using Selenium WebDriver?
- How to check for chrome generated logs when selenium tests are run?
End to End Tests for owasp-juice-shop
- User will navigate to the website and close all the pop up first.
- User will click on Login link and click on
Not yet a customer link
and register himself on the website. - Once the Registration is successful, User will Login with that username and password.
- After successful Login, User will Add AppleJuice and BananaJuice to the Basket.
- After asserting the messages for items added to basket, user will check for the count of items displayed on top
of
Your Basket
link. - User will click on
Your Basket
link and check the order details and click on Checkout. - User will enter a new Address for Delivery and select it to process further.
- User will continue further to Card for Payment and select the card added to make payment.
- On the Order Summary page, user will verify all the details like Name, Address, Order details and total amount to be paid and place order.
- USer will re-check the details on Order confirmation page and check for
Thank You
message order confirmation and delivery message.
- End to End tests for Juice Shop Website are running on 'http://localhost:3000' inside the container in github actions.
- CI/CD Pipeline has been added using Github Actions.
- Discuss your queries by writing to me @ [email protected] OR you can ping me on the following social media sites:
- Twitter: mfaisal_khatri
- LinkedIn: Mohammad Faisal Khatri
- Contact me for 1:1 trainings related to Testing and Test Automation.