How I made my Selenium Test Execution faster?As your automation test suite grows, so does the execution time. What once took 5 minutes now takes 45, and that's unacceptable.I once worked on a framework using Selenium with Cucumber and TestNG. I found the execution time took much longer and the ...Jul 23, 2025 · 2 min readsdetjournal.hashnode.dev
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...Jul 21, 2025 · 2 min readsdetjournal.hashnode.dev
TestNG vs JUnit 5: Which Test Runner Should You Choose?The debate between TestNG and JUnit never seems to end in the world of test automation. Both are powerful Java-based testing frameworks—but which one fits your needs better? Breaking the Myth: What Came First—JUnit or TestNG? JUnit came first, way ...Jul 21, 2025 · 2 min readsdetjournal.hashnode.dev
Why is type casting done in (JavascriptExecutor) driver?When working with Selenium, you might’ve seen this line of code:JavascriptExecutor js = (JavascriptExecutor) driver; But why do we need this type casting? Let’s break it down simply. What is JavascriptExecutor?JavascriptExecutor is an interface in Se...Jul 9, 2025 · 1 min readsdetjournal.hashnode.dev