-
Notifications
You must be signed in to change notification settings - Fork 2
2 Web
Martin Großmann edited this page Sep 24, 2024
·
3 revisions
The Appium connector will register additional browser configurations for tt.browser
:
mobile_chrome
mobile_safari
(since 2.4)
You can customize your mobile session with WEB_DRIVER_MANAGER.setUserAgent(..)
. The settings are used global
import eu.tsystems.mms.tic.testframework.appium.Browsers;
import eu.tsystems.mms.tic.testframework.useragents.ChromeConfig;
import eu.tsystems.mms.tic.testframework.mobile.driver.SafariMobileConfig;
...
@BeforeSuite
public void initCaps() {
// Use the standard ChromeOptions
WEB_DRIVER_MANAGER.setUserAgentConfig(Browsers.mobile_chrome, (ChromeConfig) options -> {
options.setAcceptInsecureCerts(true);
});
//Use the io.appium.java_client.safari.options.SafariOptions from appium-client
WEB_DRIVER_MANAGER.setUserAgentConfig(Browsers.mobile_safari, (SafariMobileConfig) options -> {
options.acceptInsecureCerts();
});
}