question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

implicit_wait not work when an element could not be located on the page

See original GitHub issue

The problem

Running test on android real device with uiautomator2, after init python driver, call /session/:session_id/timeouts/implicit_wait set wait time for 20000ms, when an element not be find in de page, the endpoint “/element” response immediately not wait 20s.

Environment

  • Appium version (or git revision) that exhibits the issue:1.8.1
  • Last Appium version that did not exhibit the issue (if applicable):1.7.2
  • Desktop OS/version used to run Appium: macOS 10.13.5
  • Node.js version (unless using Appium.app|exe):v8.11.2
  • Mobile platform/version under test: android/5.1.1
  • Real device or emulator/simulator: real device
  • Appium CLI or Appium.app|exe:

Details

firstly, call endpoint /timeouts/implicit_wait set 20000ms, secondly, call endpoint “/element”, finally, the element not located on the page, appium not wait for this element for 20s, and raise Encountered internal error

Hope set implicit_wait time work.

Link to Appium logs

Appium log

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
vasogiamareloucommented, Sep 5, 2018

Hello any update on the above issue? “appium”: {“version”: “1.9.0”,“appium-android-driver”: “3.7.0”} and still appium responds immediately and does not wait.

0reactions
lock[bot]commented, Sep 5, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selenium implicitlyWait Not Working? - Stack Overflow
Implicit Wait and Explicit Waits doesn't work that way, they will maximum wait for element for the time duration specified, If they find...
Read more >
How to fix Webdriver wait or implicitly wait deprecated ...
In this video we have shown how to fix below error related to implicitly wait and explicitly wait:“Timeouts org.openqa.selenium.WebDriver.
Read more >
5. Waits — Selenium Python Bindings 2 documentation
An implicit wait tells WebDriver to poll the DOM for a certain amount of time when trying to find any element (or elements)...
Read more >
Implicit & Explicit wait is not reliable to find the element - Support
I am using the wait condition until the element is clickable.But sometime it is not working.It is saying "Timed out after 30 seconds...
Read more >
How To Use Implicit Wait in Selenium Webdriver
By default, Selenium will not wait for an element once the page load completes. It checks for an element on the page then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found