Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Last active June 21, 2022 17:42
Show Gist options
  • Save SarahElson/bc57b13b09de507ff62f3f7e613ccded to your computer and use it in GitHub Desktop.
Save SarahElson/bc57b13b09de507ff62f3f7e613ccded to your computer and use it in GitHub Desktop.
Speed Up Accessibility Testing With LambdaTest And Evinced
private EvincedWebDriver driver;
@BeforeMethod
public void setup(Method m, ITestContext ctx) throws MalformedURLException {
String username = System.getenv("LT_USERNAME");
String authkey = System.getenv("LT_ACCESS_KEY");
String hub = "@hub.lambdatest.com/wd/hub";
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("platform", "Windows 10");
caps.setCapability("browserName", "Chrome");
caps.setCapability("version", "92.0");
caps.setCapability("resolution", "1024x768");
caps.setCapability("build", "TestNG With Java");
caps.setCapability("name", m.getName() + this.getClass().getName());
caps.setCapability("plugin", "git-testng");
String[] Tags = new String[] { "Feature", "Magicleap", "Severe" };
caps.setCapability("tags", Tags);
webDriver = new RemoteWebDriver(new URL("https://" + username + ":" + authkey + hub), caps);
driver = new EvincedWebDriver(webDriver);
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
driver.evStart();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment