@Test public void acceptsOtherW3CValues() { sauceOptions.setAcceptInsecureCerts(true); sauceOptions.setPageLoadStrategy(PageLoadStrategy.EAGER); sauceOptions.setSetWindowRect(true); sauceOptions.setUnhandledPromptBehavior(UnhandledPromptBehavior.IGNORE); sauceOptions.setStrictFileInteractability(true); sauceOptions.timeout.setImplicitWait(1); sauceOptions.timeout.setPageLoad(100); sauceOptions.timeout.setScript(10); Map<Timeouts, Integer> timeouts = new HashMap<>(); timeouts.put(Timeouts.IMPLICIT, 1); timeouts.put(Timeouts.PAGE_LOAD, 100); timeouts.put(Timeouts.SCRIPT, 10); assertEquals(true, sauceOptions.getAcceptInsecureCerts()); assertEquals(PageLoadStrategy.EAGER, sauceOptions.getPageLoadStrategy()); assertEquals(true, sauceOptions.getSetWindowRect()); assertEquals(UnhandledPromptBehavior.IGNORE, sauceOptions.getUnhandledPromptBehavior()); assertEquals(true, sauceOptions.getStrictFileInteractability()); assertEquals(timeouts, sauceOptions.getTimeouts()); }
public Map<Timeouts, Integer> getTimeouts() { if (timeout.getTimeouts().isEmpty()) { return timeouts; } return timeout.getTimeouts(); }
SauceOptions { public Map<Timeouts, Integer> getTimeouts() { if (timeout.getTimeouts().isEmpty()) { return timeouts; } return timeout.getTimeouts(); } }
SauceOptions { public Map<Timeouts, Integer> getTimeouts() { if (timeout.getTimeouts().isEmpty()) { return timeouts; } return timeout.getTimeouts(); } SauceOptions();  SauceOptions(ChromeOptions options);  SauceOptions(EdgeOptions options);  SauceOptions(FirefoxOptions options);  SauceOptions(InternetExplorerOptions options);  SauceOptions(SafariOptions options); private  SauceOptions(MutableCapabilities options); }
SauceOptions { public Map<Timeouts, Integer> getTimeouts() { if (timeout.getTimeouts().isEmpty()) { return timeouts; } return timeout.getTimeouts(); } SauceOptions();  SauceOptions(ChromeOptions options);  SauceOptions(EdgeOptions options);  SauceOptions(FirefoxOptions options);  SauceOptions(InternetExplorerOptions options);  SauceOptions(SafariOptions options); private  SauceOptions(MutableCapabilities options); Map<Timeouts, Integer> getTimeouts(); MutableCapabilities toCapabilities(); String getBuild(); boolean isKnownCI(); void mergeCapabilities(Map<String, Object> capabilities); void setCapability(String key, Object value); }
SauceOptions { public Map<Timeouts, Integer> getTimeouts() { if (timeout.getTimeouts().isEmpty()) { return timeouts; } return timeout.getTimeouts(); } SauceOptions();  SauceOptions(ChromeOptions options);  SauceOptions(EdgeOptions options);  SauceOptions(FirefoxOptions options);  SauceOptions(InternetExplorerOptions options);  SauceOptions(SafariOptions options); private  SauceOptions(MutableCapabilities options); Map<Timeouts, Integer> getTimeouts(); MutableCapabilities toCapabilities(); String getBuild(); boolean isKnownCI(); void mergeCapabilities(Map<String, Object> capabilities); void setCapability(String key, Object value); public TimeoutStore timeout; static final List<String> primaryEnum; static final List<String> secondaryEnum; static final List<String> w3cDefinedOptions; static final List<String> sauceDefinedOptions; static final Map<String, String> knownCITools; }