Wait For Element Present

Is there any command like ‘WaitForElementPresent’ for java in eclipse?

I want to avoid explicit timeouts (Thread.Sleep) and use element visibility dependency for executing test script

Default Asked on July 1, 2016 in Program QA Automation.
Add Comment
  • 1 Answer(s)

    You could try to use this:

    (new WebDriverWait(driver, 10))

    This will wait until the element is present on the page, before going to the next code.
    Hope it helps.

    Kind regards


    Default Answered on July 6, 2016.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.