I dont have a super clear answer for you because I have always had problems with iOS being way slower than Android. I do have a couple of suggestions though… Check your Appium version and Java Selenium version… iOS became very slow after upgrading to Appium 1.8 but then I got my speed back when I also upgraded Java-Selenium… here is a post about it
Also, in my experience, iOS has a hard time with xPath… using CSS names to find elements has made things faster…
I also got some speed by not using selenium’s implicitlyWait when running on iOS… Im having trouble finding the post where I learned that
Thank you so much…
Now after updating Appium java client (6.0.0-BETA5) and Selenium-java (3.9.1) it is executing faster.
But I am facing issue after updating these dependencies.
org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement: {stacktrace=NoSuchElementError: An element could not be located on the page using the given search parameters.
If you could attach your full Appium logs from the run, I might be able to help you. “Returned value cannot be converted to WebElement” is an very common error that happens under quite a few conditions. You could have the current context set to NATIVE when you are trying to select an element in the WebView… the element could be hidden or not ready when you make the selection… your selector could be wrong… etc
When I updated Selenium-java, I ran into a few extra trivial issues that werent there before