Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • 12
    Sleep() should probably almost never be used for waiting for the page load. I think it's quite obvious why (network speed, cpu speed, web server response time, to name a few) and there are wait-related methods in the web driver for exactly those reasons, so always use those instead of sleep(). Commented Jun 14, 2019 at 12:36