Selenium WebDriver – How To Design Page Objects In Fluent Style

Overview: As an automation engineer, you would have understood that creating an automated test for an application is not very difficult. Instead the difficult part is maintaining the existing tests!! That too, When you have thousands of automated tests. Oh Wait..on top of that, You have got Junior team members to maintain those thousands of […]

Selenium WebDriver – How To Automate Responsive Design Testing

Overview: In IoT era, where everything is integrated, It is almost impossible to find someone without a mobile device! Any user with an internet connection could potentially be a customer of your application. So, It is your job to ensure that they have a best user experience on your website. Responsive web design makes your application

Selenium WebDriver – How To Automate Responsive Design TestingRead More »

Selenium WebDriver – How To Automatically Switch Among Browser Windows

Overview: One of the common challenges we face while automating our tests is – switching between open windows. Many of us would have seen the code as shown below. // get the current window handle String parentHandle = driver.getWindowHandle(); for (String handle: driver.getWindowHandles()) { if (!parentHandle.equals(handle)) driver.switchTo().window(handle); } There is nothing wrong in the above code

Selenium WebDriver – How To Automatically Switch Among Browser WindowsRead More »

Selenium WebDriver – Design Patterns in Test Automation – Template Method Pattern

Overview: As a software engineer, We all face some errors/exceptions while writing code! So what do we do when we face such a problem? If we are not sure, We google for solutions immediately. Don’t we? We google because we know that we would not be alone and someone would have already found the solution, for the

Selenium WebDriver – Design Patterns in Test Automation – Template Method PatternRead More »

Selenium WebDriver – How To Inject Page Object Dependencies Using Guice

Overview: In this article, we will see the use of Dependency Injection using Guice lib and how it helps us to come up with more readable, reusable page objects and tests. Dependency Injection: Lets this consider this simple Page Object for Google page. public class Google { private final WebDriver driver = new ChromeDriver(); public

Selenium WebDriver – How To Inject Page Object Dependencies Using GuiceRead More »

Selenium WebDriver – Design Patterns in Test Automation – Strategy Pattern

Overview: As a software engineer, We all face some errors/exceptions while writing code! So what do we do when we face such a problem? If we are not sure, We google for solutions immediately. Don’t we? We google because we know that we would not be alone and someone would have already found the solution, for the

Selenium WebDriver – Design Patterns in Test Automation – Strategy PatternRead More »

Selenium WebDriver – Advanced Page Object Pattern with Page Fragments using Arquillian Graphene

This is second post in Arquillian Graphene series. So, I would request you to read this post first if you have not already to get basic understanding of what Graphene is! Please note that Graphene is a framework / wrapper for Selenium WebDriver. So you do not miss any features of the WebDriver when you use

Selenium WebDriver – Advanced Page Object Pattern with Page Fragments using Arquillian GrapheneRead More »