mfaisalkhatri / selenium-pagefactory-demo

Selenium WebDriver example with Page Factory Model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

❓ What is this Repository about?

  • This repo contains example code for implementing Page Factory model in Selenium using @FindBy, @FindBys and @FindAll annotations.
  • Maven is used as build tool in thies project.
  • TestNG is used as testing framework for organizing and running tests and performing Assertions.

Examples covered in this repository

  1. How to implement Page Factory model in Selenium WebDriver?
  2. How to use @FindBy annotation in Selenium?
  3. How to use @FindBys annotation in Selenium?
  4. How to use @FindAll annotation in Selenium?

Running the Tests

  1. To run the test from command line use the following command:

    • mvn clean test
  2. To run the tests using TestNG in intelliJ:

    • Right click on testng.xml and select Run '...\testng.xml

🧬 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:

💭 Checkout the blogs related to Testing on Medium, My Website and LambdaTest blogs

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

About

Selenium WebDriver example with Page Factory Model


Languages

Language:Java 100.0%