I am using below configuration:
Xcode : 8.2
Appium: 1.6.1
Mac OS: 10.11
Device OS: 9.3
I am facing issue that some steps in the scripts are taking too much to get execute. I think appium first finding all the elements from the screen and then executing the step. Earlier I was using iOS device with appium 1.6.3, back then I was not facing this issue and also same scripts were working smoothly with appium 1.5.3 with iOS 9 device.
So what is causing this issue? Is it iOS 9 with appium 1.6.1 and xcode 8? If so what is the solution?
Appium logs are capturing something like this:
t = 565.13s Use cached accessibility hierarchy for Name of bundle id I am using
t = 565.48s Find: Descendants matching type Any
t = 565.83s Find: Element at index 6
t = 565.85s Find the Any
t = 565.85s Use cached accessibility hierarchy for Name of bundle id I am using
t = 566.19s Find: Descendants matching type Any
t = 566.55s Find: Element at index 7
t = 566.56s Find the Any
t = 566.56s Use cached accessibility hierarchy for Name of bundle id I am using
t = 566.91s Find: Descendants matching type Any
t = 567.26s Find: Element at index 8
t = 567.27s Find the Any
t = 567.28s Use cached accessibility hierarchy for Name of bundle id I am using
t = 567.62s Find: Descendants matching type Any
t = 567.97s Find: Element at index 9
t = 567.99s Find the Any
t = 567.99s Use cached accessibility hierarchy for Name of bundle id I am using
t = 568.34s Find: Descendants matching type Any
t = 568.70s Find: Element at index 10
t = 568.71s Find the Any
t = 568.71s Use cached accessibility hierarchy for Name of bundle id I am using
t = 569.06s Find: Descendants matching type Any
t = 569.41s Find: Element at index 11
This index keep on increasing and it takes forever to execute one simple click. Please advice.