How do pass W3C as a capability with Appium Java-Junit?
Hello Alex-Walker,
You can add the “w3c” command to your script as shown on the sample code snippet below or you can use our desired capability generator for the same:
DesiredCapabilities capabilities = new DesiredCapabilities();
HashMap<String, Object> ltOptions = new HashMap<String, Object>();
ltOptions.put("w3c", true);
ltOptions.put("platformName", "android");
ltOptions.put("deviceName", "Zenfone 6");
ltOptions.put("platformVersion", "10");
ltOptions.put("isRealMobile", true);
capabilities.setCapability("lt:options", ltOptions);