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 – 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 »

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 »