Hi All, wish you a very happy new year. It’s been a long time since my last post and this is the first one of 2013. I had been doing some interesting stuff over past few weeks on Behaviour Driven Automation testing and will share with a simple example on how to do the same with selenium. The catch here is with the Java library.Read More »
Category: Selenium tricks
Starting with Selenium GRID
Want to take best advantage of Selenium, GRID is the answer. It acts as a load balancer, but for tests. It’s primary job is to distribute the tests to different nodes (machines) registered to the server which has the hub. Let’s get started with the same.Read More »
How to Handle GWT suggestions using Selenium?
It is a very common pattern now a days that many web application are being developed using Google Web Toolkit and it can be very challenging to test such applications sometimes using selenium. For instance, last few days, I was struggling to go past a scenario where the suggest box of one field was masking another WebElement. For this reason the other WebElement was not getting located by Selenium and my test was failing. After many hit and trials, I found a way to solve this problem. Read More »
A Better Way of Writing Selenium Scripts [Part – 2]
Here I’m back with part 2 of the series. Here I would be explaining the test class. It’s basically the hybrid framework in detail.Read More »
A Better Way of Writing Selenium Scripts [Part – 1]
Many of us would be wordering what’s the best way to do scripting using selenium. Should we use ‘Data Driven Test Frameworks’, should we use ‘Keyword Driven Test Framework’ or should we combine both and use ‘Hybrid Test Framework’. Should we fetch the data from an excel sheet, or may be should we use XML files, or should we be more developer kind and use a Database instead. If you search on internet you will find many answers and arguments. Read More »
How to work with pop up windows using WebDriver?
It’s been quite some time since my last post. Here is problem we face many times. As time goes by coding standard rises and now a developer code in such a way that, it’s difficult to find different elements with names. One such difficulty come, when there is a pop up window appears on clicking a link and that has no name. Even with Selenium IDE, it’s difficult to find the handler name. What to do in such scenarios when we need to do some operation in the pop up window. Read More »
A way to test Object by Object using selenium
Many of us must be trying to find the best way to do automation testing using selenium. And if we write our script in the same class, it becomes too long and difficult to manage. To tackle the same one can always follow the hybrid framework mentioned in my earlier post. But is it the […]
How to do Data Driven Testing using Selenium 2 (WebDriver)?
Many of us would be wondering if data driven testing is possible using Selenium 2 (WebDriver). The answer is yes, it can be done and again with the help of testNG. Below is a simple example where I’m passing data to the google search box using a 2×2 table.Read More »
How to Handle Window based Pop up using Selenium and AutoIT?
Some times while doing testing with selenium, we get stuck by some interruptions like a window based pop up. I have faced similar situation while doing my analysis. Since we were using a proxy to connect to internet, any page we open will ask for proxy authentication in a window based pop up. But selenium fails to handle this as it has support for only web based application. To overcome this problem we need to use AutoIT along with selenium script. AutoIT is a third party tool to handle window based applications. The scripting language used is VBScript.Read More »
Hybrid Testing (Data + Keyword Driven) using Selenium
Today, we’ll see how to do hybrid testing using selenium. Let’s discuss what’s hybrid testing first. Hybrid testing is a combination of Data Driven testing along with keyword. Here we’ll use some keywords as the driving parameters in data driven testing the data sheet. The keywords will be defined by the user, and let’s call them user defined keywords.Read More »