Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
added capability selenoid.sessionTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostryak authored Nov 13, 2018
1 parent afe2dfb commit 404db16
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class SelenoidCapabilitiesProvider {
private static final String SELENOID_HOST_ENTRIES = Props.get("selenoid.hostEntries");
private static final String SELENOID_APPLICATION_CONTAINERS = Props.get("selenoid.applicationContainers");
private static final String SELENOID_CONTAINER_LABLES = Props.get("selenoid.containerLables");
private static final String SELENOID_SESSION_TIMEOUT = Props.get("selenoid.sessionTimeout");

public static void apply(DesiredCapabilities capabilities) {

Expand Down Expand Up @@ -103,6 +104,12 @@ public static void apply(DesiredCapabilities capabilities) {
} else {
LOG.info("Capability \"labels\" for Selenoid isn't set. Using default capability.");
}

if (!SELENOID_SESSION_TIMEOUT.isEmpty()) {
capabilities.setCapability("sessionTimeout", SELENOID_SESSION_TIMEOUT);
} else {
LOG.info("Capability 'sessionTimeout' for Selenoid isn't set. Using default capability.");
}

if (TagWebDriver.getBrowserName().equalsIgnoreCase(BrowserType.OPERA)) {
capabilities.setCapability("operaOptions", new HashMap<String, String>() {
Expand Down

0 comments on commit 404db16

Please sign in to comment.