Best Practices for Using Wait in WebDriver – What Works for You? or How Do You Handle Wait in WebDriv

20 Replies, 1531 Views

Dude, I feel you. Wait in webdriver is like a fickle cat—works when it wants to.

I swear by explicit waits, but for *really* slow elements, I’ll sometimes add a *tiny* Thread.sleep (gasp, I know). Just as a last resort.

Also, Selenium IDE (the new one) has cool wait commands built in. Great for prototyping before coding.

Random timeouts? Check your network latency. I’ve been burned by VPNs slowing things down.

Messages In This Thread



Users browsing this thread: 1 Guest(s)