Category: <span>Blog</span>

Selenium GRID and Nunit

Everyone asking about how to setup Selenium GRID. We were using Visual Studio to execute script which was kind of time consuming. It used to take minium 1.5 hours after every build. After that I implemented GRID and divided  tests into groups based on category and ran in parallel and achieved 66% improvement. Not bad ;). [gview file=”http://learnseleniumtesting.com/wp-content/uploads/2012/10/SeleniumGrid_LearnSeleniumTesting1.pdf”] If you have any question, I will try to answer. If you are using webdriver and want to use grid then you need to use remote webdriver instead. Every thing will be the same. Remember: If you try to use two instances …

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 …