Why never use Thread.sleep() in Selenium.
When I first began my journey with Selenium automation, Thread.sleep() felt like a handy tool.Just add Thread.sleep() and the timing issues would vanish. But later it came at a huge cost.
driver.findElement(By.id("loginButton")).click();
Thread.sleep...
sdetjournal.hashnode.dev2 min read