Explicit and Implicit waits

Introduction In a web application, the elements are loaded at different time intervals of the entire page load. There is a possibility of ElementNotVisibleException if the element that we are trying to find is not present when the webdriver tries to find it. To address this problem, we can use webdriver waits, it helps to have certain amount of time pass by before execution of the next steps or before a webdriver tries to find an element. [Read More]

Locator identification strategy in selenium

Choosing the right locator is very important aspect of UI test automation using Selenium. A good locator is more reliable and requires less test maintenance cost. While there are multiple ways of choosing a locator, I usually go with the below order. We will be using this HTML page for locator identification. The HTML for the same page is shared below. <html> <head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"> <title>Login Page</title> </head> <body> <div id="content" class="container"> <h1>Login Page</h1> <form id="loginForm" method="post" action="/authenticate"> <div class="form-group"> <label for="email" class="col-form-label">Email: </label> <input id="email" name="email" class="form-control" /> <label for="password" class="col-form-label">Password: </label> <input id="password" name="password" type="password" class="form-control" /> </div> <div class="form-group row"> <div class="col-sm-1"> <button type="submit" class="btn btn-primary">Login</button> </div> <div class="col-sm-1"> <button type="submit" class="btn btn-primary">Signup</button> </div> <div class="col-sm-1"> <button type="submit" class="btn btn-default">Forgot password? [Read More]

Benefits of using Selenium for test automation

Before you decide on an test automation solution for your web application testing, it would be wise to look at the benefits that selenium provides which I’ll be discussing in this post. Selenium is an open source software. There is no licensing cost and anyone can download and use it for personal learning or business purpose. This could be a great time and cost savings, resulting in a better ROI for the team using it. [Read More]