sdetjournal.hashnode.devHow 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 read
sdetjournal.hashnode.devWhy 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 read
sdetjournal.hashnode.devTestNG 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 read
sdetjournal.hashnode.devWhy 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 read
sdetjournal.hashnode.devSelenium cheat sheetAutomate Browser navigations driver.get("link"); driver.navigate().to("link"); driver.navigate.back(); driver.navigate.forward(); driver.navigate.refresh(); Window Properties getWindowHandle(); getWindowHandles(); switc...Apr 23, 2024·2 min read