Skip to content

ndshah/selenium-interview-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Test Setup

This repository provides a basic setup for Selenium tests using Java. It includes:

  • Maven as the build tool
  • TestNG as the testing framework
  • Selenium WebDriver as the browser automation tool
  • ChromeDriver and GeckoDriver for Chrome and Firefox browsers respectively
  • WebDriverManager for managing the browser drivers

Prerequisites

  • Java Development Kit (JDK) 17 or higher
  • Maven 3.6.1 or higher
  • Chrome and/or Firefox browser installed

Setup

  1. Clone the repository using git clone https://github.com/ndshah/selenium-interview-test
  2. Change into the project directory using cd selenium-test-setup
  3. Install the dependencies using mvn clean install
  4. Update the webdrivermanager properties in the pom.xml file to point to the correct browser driver executable paths
  5. Run the tests using mvn test

Configuration

The Selenium tests can be configured using the following environment variables:

  • BROWSER: The browser to use for the tests. Supported values are chrome and firefox.
  • DRIVER_PATH: The path to the browser driver executable.

The environment variables can be set using the mvn command line options or by creating a settings.xml file in the project root directory.

About

Interview test repo for Selenium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages