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 »
Setting up Eclipse for Selenium RC
Here, we’ll discuss how to set up and configure Eclipse to use it for the java version of selenium RC. So prior to set up, let’s make sure we have all the required components gathered with us and the latest version of java installed in our system. The components required are as below.Read More »
Setting Up Selenium IDE with Firefox
How do we set up selenium IDE? Before doing anything first we need to check if we have Firefox installed in our system. As we all know IDE is the integrated development environment, selenium provides to record, customize and run different test in Firefox. Since it’s a Firefox add-on, we need to have Firefox installed in our machines to use the same. The max version of Firefox currently supported by IDE is Firefox 5.0 and the current version of IDE is 1.0.12. So first we need to install Firefox in our machine which is available for all sorts of premier operating systems used worldwide and can be downloaded from http://www.mozilla.com/en-US/firefox/new/ for free.Read More »
Selenium 2.0 Released….
It’s been quite some time since my last post. I’m really excited about Selenium 2.0 which was released yesterday. Have a lot of research to do on it. How to data drive test using 2.0 and quite a few stuff. Till then, I’ll post selenium teachings step by step so that everyone can benefit. 🙂
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 »
How to take full page screenshots in browsers other than Firefox using Selenium?
Here is a problem which very few people would face. The situation is you need to have a full page screenshot of whatever page you visit while testing a web application and you are not allowed to use any third party tool for the same for any reason (e.g security purposes).Read More »
How to run Firefox 4.0 and higher versions using Selenium RC?
I have been facing this problem for a quite long time. I was unable to run test using selenium RC 1.0.x. The problem behind this is: in the selenium server tha max version of firefox to be used is defined as 3.6. To overcome this problem, we need to override the value to the version number you want to use (in my case 4.0). Below are the step on how to do it:Read More »
How to get any attribute if no default method is defined for the same?
While analyzing selenium, I got a problem of retrieving a particular property as no default method was defined for retrieving the same in the Selenium API. The solution for the same was a little tricky. Let me explain the same with an expample.Read More »
How to Start IE 8 using Selenium RC in Win Vista or Win 7?
While using Selenium RC, this is a common experience that when the server is started in normal command prompt in Win Vista or Win 7, then IE fails to open the URL. A temporary file location is entered in the browser which leads to the failure of the first step of a test i.e opening the browser and entering the URL. Read More »