Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.55 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.55 KB

JStripe Dependabot Status

Stripe, the leader of Gremlins is responsible for unleashing hordes.

Jstripe is a library that enables use of gremlins.js for Java and Selenium. Monkey test web pages and components to check their robustness.

Installation

Import this library into your project via maven using the following snippets in your pom.xml:

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>
	<dependency>
	    <groupId>com.github.thibstars</groupId>
	    <artifactId>jstripe</artifactId>
	    <version>currentVersion</version>
	</dependency>

Usage

Example usage:

    WebDriverManager.chromedriver().setup();

    ChromeOptions options = new ChromeOptions();
    options.addArguments("--incognito");

    ChromeDriver chromeDriver = new ChromeDriver(options);

    BattleField battleField = BattleField.builder()
        .webDriver(chromeDriver)
        .url(new URL("http://www.google.com"))
        .build();

    controller.prepareBattle(battleField);

    simpleHorde.unleash(chromeDriver);

    Thread.sleep(10000);

    simpleHorde.retreat(chromeDriver);

    chromeDriver.quit();