GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - eviltester/startUsingSeleniumWebDriver: Source code to support the online course Start Using Selenium WebDriver with Java

BranchesTags
Open more actions menu

Latest commit

 

History

61 Commits
61 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src/test/java/com/eviltester/webdriver
src/test/java/com/eviltester/webdriver
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
install_notes.md
install_notes.md
 
 
pom.xml
pom.xml
 
 
speedrun_install_checklist.md
speedrun_install_checklist.md
 
 

Repository files navigation

Start Using Selenium WebDriver

build status

Simple start example for Selenium 4 with java and JUnit 5.

  • For previous versions of WebDriver and JUnit see the releases page.

It has the basic startup and configuration for a test using Chrome Driver.

Supporting text description of the contents of this repo can be found:

  • https://testpages.eviltester.com/reference/automating/webdriver/webdriver-java/

The pages used as the system under test are:

  • https://testpages.eviltester.com

Pre-Requisites

Pre-requisites are (use quick start guide to install these):

  • a Java SDK
  • maven
  • and and IDE Install.

The code uses JUnit 5 so you can follow the Quick Start Guide in the "Getting Started with JUnit 5 repo"

  • Quick start guide is here

Start By

Clone or download the repo as a zip.

From the unzipped top level directory containing the 'pom.xml' file, you can run the test using:

mvn test

And can run it using headless mode by setting the environment variable BROWSER_STATE to have the value "Headless"

e.g.

BROWSER_STATE=Headless mvn test

Use the code

Open the project in Intellij by opening the folder containing the 'pom.xml' or open the 'pom.xml'.

Github Actions

The repo also has Github actions to run the test in headless mode periodically.

About Selenium WebDriver 4

This uses Selenium 4.

Selenium 4 comes with a builtin WebDriver Manager

https://www.selenium.dev/blog/2022/introducing-selenium-manager/

This will automatically download the drivers required to allow Selenium to use the chosen webdriver.

e.g. if you instantiate a new ChromeDriver() the WebDriver Manager will download the drivers for Chrome and run the tests against Chrome.

You just need to download and have Chrome installed.

Similarly, with Firefox and Edge, just download the browser and Selenium will download the correct driver.

About

Source code to support the online course Start Using Selenium WebDriver with Java

seleniumsimplified.com/get-started/

Resources

Readme
MIT license
Activity

Stars

56 stars

Watchers

22 watching

Forks

61 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.