Skip to content

Showcases the combination of JUnit sequence and Java time control commands with Selenium explicit waits.

Notifications You must be signed in to change notification settings

geozi/selenium-waits-junit-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

selenium-waits-junit-demo

Demo App

About the Project

This project was created as part of my preparation for the "Software Engineer in Test" job application. Its purpose is to showcase the combination of JUnit sequence and Java time control commands with Selenium explicit waits.

Prerequisites

  • Java 17 or higher,
  • Intellij IDEA (or any other Java IDE),
  • Maven,
  • Selenium.

Dependencies

    <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
    <dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-java</artifactId>
      <version>4.23.0</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-firefox-driver -->
    <dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-firefox-driver</artifactId>
      <version>4.23.0</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-chrome-driver -->
    <dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-chrome-driver</artifactId>
      <version>4.23.0</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <version>5.10.3</version>
      <scope>test</scope>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>5.10.3</version>
      <scope>test</scope>
    </dependency>

Web elements under test

The web elements tested with Selenium are the following:

Element 1: bsq_elem1,

Element 2: bsq_elem2,

Element 3: bsq_elem3

Actions used

  • Opening a web page,
  • Maximizing the browser window,
  • Finding a web element,
  • Clicking on a web element,
  • Typing in a web element,
  • Quitting the browser.

Further documentation

For more information, please check the provided javadoc.

About

Showcases the combination of JUnit sequence and Java time control commands with Selenium explicit waits.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages