diff --git a/appium/src/main/java/eu/tsystems/mms/tic/testframework/mobile/driver/MobileOsChecker.java b/appium/src/main/java/eu/tsystems/mms/tic/testframework/mobile/driver/MobileOsChecker.java index d577e11..0229f89 100644 --- a/appium/src/main/java/eu/tsystems/mms/tic/testframework/mobile/driver/MobileOsChecker.java +++ b/appium/src/main/java/eu/tsystems/mms/tic/testframework/mobile/driver/MobileOsChecker.java @@ -78,12 +78,10 @@ public boolean isAppTest(WebDriverRequest webDriverRequest, Platform platform) { || capabilities.getBrowserName().equalsIgnoreCase(Browsers.android) || "Espresso".equalsIgnoreCase(getCap(capabilities, APPIUM_AUTOMATION_NAME)) || "UiAutomator2".equalsIgnoreCase(getCap(capabilities, APPIUM_AUTOMATION_NAME)) - || "UiAutomator".equalsIgnoreCase(getCap(capabilities, APPIUM_AUTOMATION_NAME)) || getCap(capabilities, APPIUM_APP_PACKAGE) != null || getCap(capabilities, APPIUM_APP_ACTIVITY) != null || "Espresso".equalsIgnoreCase(getCap(mutableCapabilities, APPIUM_AUTOMATION_NAME)) || "UiAutomator2".equalsIgnoreCase(getCap(mutableCapabilities, APPIUM_AUTOMATION_NAME)) - || "UiAutomator".equalsIgnoreCase(getCap(mutableCapabilities, APPIUM_AUTOMATION_NAME)) || getCap(mutableCapabilities, APPIUM_APP_PACKAGE) != null || getCap(mutableCapabilities, APPIUM_APP_ACTIVITY) != null; case IOS: @@ -92,10 +90,8 @@ public boolean isAppTest(WebDriverRequest webDriverRequest, Platform platform) { || webDriverRequest.getBrowser().equalsIgnoreCase(Browsers.ios) || capabilities.getBrowserName().equalsIgnoreCase(Browsers.ios) || "XCUITest".equalsIgnoreCase(getCap(capabilities, APPIUM_AUTOMATION_NAME)) - || "UIAutomation".equalsIgnoreCase(getCap(capabilities, APPIUM_AUTOMATION_NAME)) || getCap(capabilities, APPIUM_BUNDLE_ID) != null || "XCUITest".equalsIgnoreCase(getCap(mutableCapabilities, APPIUM_AUTOMATION_NAME)) - || "UIAutomation".equalsIgnoreCase(getCap(mutableCapabilities, APPIUM_AUTOMATION_NAME)) || getCap(mutableCapabilities, APPIUM_BUNDLE_ID) != null; default: return false;