Experience & exploration about software QA tools & techniques. Maintaining & writing blog posts on qavalidation.com! Publishing video tutorials on youtube.com/qavbox

selenium implicit + Explicit + fluent waits

Every browser application has it’s own delay in loading the elements when we open a web application / navigate from one page to another / perform some action. Loading depends on different criteria like internet bandwidth, technology used in the application, server capacity, no of users accessing the browser app etc… While executing tests in…

TestNG @Test attributes – AlwaysRun

alwaysRun is a testNG attribute which makes a test method run always even if it’s dependent method is not run… let’s see the code implementation public class AlwaysRun { WebDriver driver; @Test public void test1() { driver = new FirefoxDriver(); driver.get(“http:qavalidation.com”); Assert.assertTrue(driver.getTitle().contains(“Testing”)); } @Test(dependsOnMethods = {“test1”}, alwaysRun=true) public void test2() { driver.findElement(By.linkText(“Selenium Tutorial!”)).click(); } }…