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.
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>
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();