Skip to content

Latest commit

 

History

History

webdriverchecker-selenide

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Java Maven GitHub Actions

WebDriverChecker for Selenide

Table of Contents

When using Selenide directly, webdriverchecker-selenide should be used.

  • WebDriverChecker automatically get WebDriver instance from com.codeborne.selenide.impl.WebDriverContainer via com.codeborne.selenide.WebDriverRunner.getWebDriver() method.
  • You don't need to pass the WebDriver instance to the argument of checker methods.
webdriverchecker webdriverchecker-selenide
WebDriverChecker.isChrome(driver) WebDriverChecker.isChrome()

Declaration

Gradle

Add to build.gradle.

implementation("com.github.ngoanh2n:webdriverchecker-selenide:2.9.0")

Maven

Add to pom.xml.

<dependency>
    <groupId>com.github.ngoanh2n</groupId>
    <artifactId>webdriverchecker-selenide</artifactId>
    <version>2.9.0</version>
</dependency>

Test Structure

public class MyTest {
    public void test() {
        Selenide.open("https://github.com/ngoanh2n");
        // WebDriverShooter could find WebDriver instance from here.
        // WebDriverShooter.page(driver) <=> WebDriverShooter.page()
    }
}