Open
Description
Getting timeout error on a click command. I have added a setFrameSync before and after the click command.
await driver.execute('flutter:setFrameSync', true, 5000);
await driver.elementClick(this.otpTextbox);
await driver.execute('flutter:setFrameSync', false, 5000);
Terminal output:
[0-0] 2024-03-20T10:30:47.886Z INFO webdriver: COMMAND elementClick("eyJmaW5kZXJUeXBlIjoiQnlWYWx1ZUtleSIsImtleVZhbHVlU3RyaW5nIjoidGV4dGZpZWxkT25lIiwia2V5VmFsdWVUeXBlIjoiU3RyaW5nIn0")
[0-0] 2024-03-20T10:30:47.886Z INFO webdriver: [POST] http://127.0.0.1:4723/session/db0179dd-3334-42a8-b93d-3bf5cf5e92d2/element/eyJmaW5kZXJUeXBlIjoiQnlWYWx1ZUtleSIsImtleVZhbHVlU3RyaW5nIjoidGV4dGZpZWxkT25lIiwia2V5VmFsdWVUeXBlIjoiU3RyaW5nIn0/click
[0-0] Error in "Login Scenario.should be able to login successfully"
Error: Timeout
at listOnTimeout (node:internal/timers:573:17)
at processTimers (node:internal/timers:514:7)
[0-0] 2024-03-20T10:33:45.204Z DEBUG @wdio/utils:shim: Finished to run "after" hook in 0ms
[0-0] 2024-03-20T10:33:45.204Z INFO webdriver: COMMAND deleteSession()
[0-0] 2024-03-20T10:33:45.206Z INFO webdriver: [DELETE] http://127.0.0.1:4723/session/db0179dd-3334-42a8-b93d-3bf5cf5e92d2
[0-0] 2024-03-20T10:33:45.499Z INFO webdriver: RESULT null
2024-03-20T10:33:45.614Z DEBUG @wdio/local-runner: Runner 0-0 finished with exit code 1
[0-0] FAILED in Android - file:///tests/specs/sanity/app.login.spec.ts
I have followed and applied the fix in this issue.
Added await driver.execute('flutter:setFrameSync', true, 5000);
before and after the click command.
See full appium logs here
Metadata
Metadata
Assignees
Labels
No labels