You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MutableCapabilities caps = new MutableCapabilities();
if (<scenario tags contains a specific tag>) {
caps.setCapability("autoGrantPermissions", "true");
}
caps.setCapability("platformName", "Android");
caps.setCapability("appium:platformVersion", "^([7-9]|1[0-1]).*");
caps.setCapability("appium:newCommandTimeout", 90);
caps.setCapability("appium:deviceType", "phone");
caps.setCapability("appium:deviceName", "^(Samsung).*");
caps.setCapability("appium:automationName", "UiAutomator2");
caps.setCapability("appium:ignoreUnimportantViews", false);
caps.setCapability("appium:app", "storage:" + System.getenv("APP_ID"));
MutableCapabilities sauceOptions = new MutableCapabilities();
sauceOptions.setCapability("appiumVersion", "2.0.0");
sauceOptions.setCapability("build", buildName);
sauceOptions.setCapability("tunnelName", "tunnel_name");
sauceOptions.setCapability("tunnelOwner", System.getenv("SAUCE_USERNAME"));
sauceOptions.setCapability("phoneOnly", true);
caps.setCapability("sauce:options", sauceOptions);
return new AndroidDriver(new URL(URL), caps);
`
When running tests in parallel, is there a way to get the tags of the scenario to be executed, before driver instantiation, so that I can set the "autoGrantPermissions" capability accordingly. E.g if a scenario is tagged @LocationServices I don't want to set autoGrantPermissions to true, but otherwise set it to true.
I am using latest serenity version 3.9.8.
The text was updated successfully, but these errors were encountered:
I have a custom driver implementation:
`
`
When running tests in parallel, is there a way to get the tags of the scenario to be executed, before driver instantiation, so that I can set the "autoGrantPermissions" capability accordingly. E.g if a scenario is tagged @LocationServices I don't want to set autoGrantPermissions to true, but otherwise set it to true.
I am using latest serenity version 3.9.8.
The text was updated successfully, but these errors were encountered: