Skip to content

Commit

Permalink
Removed outdated checks from MobileOsChecker
Browse files Browse the repository at this point in the history
  • Loading branch information
martingrossmann committed Jul 31, 2024
1 parent e10c465 commit 3e9a0de
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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;
Expand Down

0 comments on commit 3e9a0de

Please sign in to comment.