saucelabstedgebrowserselenium-java

Unable to parse remote response: Misconfigured -- Unsupported OS/browser/version/device


I wanted to run my scripts in Saucelabs by launching Edge driver but when the scripts is triggered getting an error as " Unable to parse remote response: Misconfigured -- Unsupported OS/browser/version/device combo: OS: 'Windows 10', Browser: 'edgedriver', Version: 'latest', Device: 'unspecified', Screen Resolution: '1600x1200' ". can someone please share the edge browser capabilities to launch Edge browser in Saucelabs using Selenium Java

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("browserName","EdgeDriver");
capabilities.setCapability("platform", "Windows 10");
capabilities.setCapability("version", "88.0.4324.27");
if (browserName.equalsIgnoreCase("EdgeDriver")) {

//System.setProperty("webdriver.edge.driver", 
System.getProperty("user.dir") + "/LIB" + "/msedgedriver.exe");

// EdgeOptions options = new EdgeOptions (); // driver = new EdgeDriver(options);

System.setProperty("webdriver.edge.driver", System.getProperty("user.dir")


Solution

  • Take a look at the Platform Configurator on Sauce Labs: https://saucelabs.com/platform/platform-configurator

    Should now be available in the UI as well.