Appium 1.7.1 - iOS: Timed out after waiting 1.0s for KeyEventCompleted after sending event for ...
See original GitHub issueThe problem
We have a large suite of tests that run in parallel over night. At some point several tests start to fail due to the error below. In the screenshots that we’re making when the tests fail we’re seeing in the textfield we’re typing ‘mm’ instead so it seems that two ‘m’ were introduced when the test failed.
We’re using connectHardwareKeyboard=false and also I’ve disabled Screen Saver on our build, since I’ve read that this might be a cause as well.
We’re not sure what is causing this :-?
Environment
- Appium version (or git revision) that exhibits the issue: 1.7.1
- Last Appium version that did not exhibit the issue (if applicable): :-?
- Desktop OS/version used to run Appium: macOS 10.12.6
- Node.js version (unless using Appium.app|exe): v7.0.0
- Mobile platform/version under test: iOS
- Real device or emulator/simulator: iOS 10 and iOS 11 Simulator
- Appium CLI or Appium.app|exe: CLI
Link to Appium logs
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Error Domain=XCTDaemonErrorDomain Code=14 "Timed out after waiting 1.0s for KeyEventCompleted after sending event for 'm'." UserInfo={NSLocalizedDescription=Timed out after waiting 1.0s for KeyEventCompleted after sending event for 'm'.} (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 3.75 seconds
Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: 'osxbuildserver.internal.mywebgrocer.com', ip: '10.0.40.9', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_91'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities [{app=/Users/jenkins/.jenkins/jobs/MyApp/jobs/MPS_AQA/jobs/iOS_Parallel/workspace/iOS/build-simulator/MyApp.app, networkConnectionEnabled=false, clearSystemFiles=true, databaseEnabled=false, connectHardwareKeyboard=false, deviceName=iPhone 5s, platform=MAC, wdaLocalPort=6789, newCommandTimeout=300, platformVersion=11.0, webStorageEnabled=false, locationContextEnabled=false, automationName=XCUITest, browserName=, takesScreenshot=true, javascriptEnabled=true, platformName=iOS, udid=936C7D51-F6C3-41D3-B80B-5411C92491DE}]
Session ID: e481bd46-0eb7-4715-acc3-8d8061f3cb4f
at sun.reflect.GeneratedConstructorAccessor136.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327)
at io.appium.java_client.DefaultGenericMobileElement.execute(DefaultGenericMobileElement.java:33)
at io.appium.java_client.MobileElement.execute(MobileElement.java:1)
at io.appium.java_client.ios.IOSElement.execute(IOSElement.java:1)
at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:122)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.appium.java_client.pagefactory.ElementInterceptor.getObject(ElementInterceptor.java:39)
at io.appium.java_client.pagefactory.interceptors.InterceptorOfASingleElement.intercept(InterceptorOfASingleElement.java:58)
at io.appium.java_client.ios.IOSElement$$EnhancerByCGLIB$$184e91dc.sendKeys(<generated>)
at pages.SignInPage.setUsername(SignInPage.java:44)
at glue.steps.SignInSteps.I_sign_in(SignInSteps.java:20)
at ✽.And I sign in(/Users/jenkins/.jenkins/jobs/MyApp/jobs/AQA/jobs/iOS_Parallel/workspace/src/test/resources/features/feature1/SomeFeature.feature:7)
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Experiencing same issue on iPhone and iPad devices for long run tests.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.