This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) throws MalformedURLException { | |
MutableCapabilities caps = new FirefoxOptions().setHeadless(false).setLegacy(false); | |
Map<String, Object> saasOptions = ImmutableMap.of( | |
"screenResolution", "1280x768", | |
"platform", "Windows 10", | |
"version", "57.0"); | |
caps.setCapability("saas:config", saasOptions); | |
WebDriver driver = new RemoteWebDriver( | |
new URL("http://cloud.example.com"), | |
caps); | |
driver.quit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JSON output of
caps
is: