Skip to content

This repository contains web automation testing example code with Playwright, Java and TestNG.

Notifications You must be signed in to change notification settings

mfaisalkhatri/web-automation-playwright-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Source Love

Don't forget to give a ⭐ to make the project popular.

❓ What is this Repository about?

Talking more about the Scenarios Covered in this project:

I have tried to answer the below questions by providing working code example in this repo:

  1. How to run test on Chrome browser?
  2. How to run test on Chrome browser in Headless mode?
  3. How to run tests on Firefox browser?
  4. How to run test on Firefox browser in Headless mode?
  5. How to run test on Chrome/Firefox browser in Slow Motion?
  6. How to run test on Edge browser?
  7. How to perform browser navigation's?
  8. How to get the Page Title?
  9. How to get the Website URL?
  10. How to type values in the text box?
  11. How to set different window sizes?
  12. How to double on a button?
  13. How to use Page Object Model using Playwright Java?
  14. How to perform browser navigation?
  15. How to perform Mouse hover?

How to run the Tests?

  • There are 2 ways to run the tests, those are as follows:

    1. TestNG:

    • Right-Click on the testng.xml and select Run .../testng.xml

    2. Maven:

    `mvn clean install -Dsuite-xml=testng.xml `
    

✍️ Blog Links

❓ Need Assistance?

  • Discuss your queries by writing to me @ mohammadfaisalkhatri@gmail.com OR ping me on any of the social media sites using the below link:

💻 Paid Trainings

  • Contact me for Paid trainings related to Test Automation and Software Testing, mail me @ mohammadfaisalkhatri@gmail.com or ping me on LinkedIn

💭 Checkout the blogs related to Testing written by me on the following links:

🔖 Checkout videos related to Software Testing and Test automation tools on Testing Talks with Faisal Khatri

Releases

No releases published

Packages

No packages published

Languages