Skip to content

Commit

Permalink
Added selnoid (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: Jyoti Chabria <[email protected]>
  • Loading branch information
jyoti-c and Jyoti Chabria authored Mar 11, 2021
1 parent 7bf7468 commit d4bd447
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<groupId>kg.apc</groupId>
<artifactId>jmeter-plugins-webdriver</artifactId>
<version>3.4</version>
<packaging>jar</packaging>

<name>WebDriver/Selenium</name>
<description>WebDriver/Selenium</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ Capabilities createCapabilities() {
chromeOptions.addArguments("--headless");
capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
}
else if (getCapability().equals(CHROME)) {
final ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--ignore-certificate-errors");
chromeOptions.addArguments("--start-maximized");
chromeOptions.setCapability("enableVNC",true);
chromeOptions.setCapability("enableVideo",true);
chromeOptions.setCapability("enableLog",true);
capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
}

return capabilities;
}
Expand Down

0 comments on commit d4bd447

Please sign in to comment.