Automation Web Testing
  • 16 Feb 2024
  • 1 Minute to read
  • Dark
    Light

Automation Web Testing

  • Dark
    Light

Article Summary

Overview

To run automation on Browsers cloud, users need to include the capabilities mentioned below, in their selenium script.

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("browserName", "edge");
HashMap<String, Object> pcloudyOptions = new HashMap<String, Object>();
pcloudyOptions.put("userName", "*****");
pcloudyOptions.put("accessKey", "*****");
pcloudyOptions.put("os", "Windows");
pcloudyOptions.put("osVersion", "11");
pcloudyOptions.put("browserVersion", "118");  
pcloudyOptions.put("local", false);
pcloudyOptions.put("seleniumVersion", "3.141.59");
capabilities.setCapability("pcloudy:options", pcloudyOptions);
driver = new RemoteWebDriver(new URL("
https://browser.device.pcloudy.com/seleniumcloud/wd/hub")
, capabilities);

To get Cloud URL and API access key

  • Go to profile
  • Click on Settings
  • Copy the Cloud URL and API Access_Key as shown below

browser access.png


Was this article helpful?