Selenium implicitlyWait Not Working?

后端 未结 4 2187
情歌与酒
情歌与酒 2020-12-18 05:05

I am learning Java Maven Selenium. I want something like this in Selenium using implicitlyWait.

  1. Open website (for example https://www.facebook.com
4条回答
  •  北海茫月
    2020-12-18 05:51

    Thread.sleep halts you execution for that particular time period. That why it is not recommended to use Thread.sleep in your execution script. Where as Implicit/Explicit wait deals with particular webelement. If script finds the required web element is present in the page, script moves on. If it does not find the mentioned web element, if finds that element in the web page for that particular wait period.

提交回复
热议问题