Category: <span>Selenium RC</span>

Mouse hover and other mouse events in WebDriver

This is widely known issue among web driver community, how to perform mouse hover.  I have many scenarios in my test where I needed to perform mouse hover to see calendar, email schedule etc. After many attempts, I found solution which is actually working very well for me but I am not sure if it’s going to work with your application of not.  Before going into coding we need to consider few limitations, In Firefox, you have to maximize the webpage just before doing mouseover to get the focus on browser. Works fine even in normal window size with other …

Using Excel for data driven testing with WebDriver and C#.

For data driven testing we need to create some kind of repository like excel or xml or any database to save our test data. XML is most popular one becuae accessing XML is quite easy and there are various dlls are easily available which we can download and start using if our data is not that complex. In some case where we need to customize our test data in excels file. I tried to write a simple code using C# and read data in excel. follwing table is a sample data sheet in Excel. Excel DataFile: Name: TestDataFile.xlsx There are three …

Webdriver and Image Verification

Can you do image verification if it loaded on webpage?  Yes! You can verify but you cannot say that images are half loaded. To verify if an image is correct then there would be some other method but the code will tell you just that images are loaded on the page or not. You can send HTTP request to that source using GET method and check the status code as 200. if that the case then your image downloaded properly and an image is there.  [gist id=6244519] Please drop your comments if you think if I am missing anything. If you …