Appium XCUITest - iOS 10 Tests Are Running Very Slow

Hi,

Environment:
Appium: 1.6.3
Xcode: 8.1
iOS device version: 10.1

Tests running using Appium XCUITest is very slow

findelement by xpath take very very long time.

is there any way to make it fast?

XPath is known to be slow. You should go for AccessibilityIDs or iOSPredicates ( writing-running-appium/ios_predicate.md )

1 Like

Any update on this . Appium 1.6.3 is running very pathetic.

I need to wait 2 days to complete 20 scripts.

@Jitu1888 @Rashmi I suggest file ticket with facebook WDA project https://github.com/facebook/WebDriverAgent

Try disabling UI Automation on your iOS device.
Record results before and after, then compare.

I am also facing same issue. Is it the problem of WebDriverAgent?

Hi @Liudas
does disabling UI Automation makes the the testcase execution faster?

Hi All,

From yesterday’s webinar from Dan Cuellar ( posted some time back ) I understood few points to speed up iOS automation

  1. Always use AccessibilityID
    https://medium.com/the-ministry-of-testing/adding-accessibility-identifiers-to-an-ios-app-c8e09d9c20f3#.r8jy29izx
  2. Warm up iOS simulators
  3. Don’t use implicit waits

Regards,
Vikram