简体   繁体   中英

time.sleep does not seem accurate with selenium

so I use time.sleep to let my automation testing have a human like time and behaviour but the time.sleep looks like a bit faster or something (sometimes it does not even look it worked) is it build like this? and should I use the implicict wait? and what's the diffrence between them?

you can use webdriver.implicitly_wait("time in s") instead if you prefer. The difference is, that implicitly waits only in the browser, while time.sleep waits in the script itself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM