This category contains 8 posts

Routing tests directly to Selenium Nodes

As and when the size of a Grid farm starts increasing, you will start having to worry about a lot of things. Since the Hub is the single point of interaction for a test with an actual node on which all the browser interactions are carried out, all tests end up bumping up the network … Continue reading

Simple Se – Page Objects – My first OSS contribution

Its been quite a while since I have been doing bits and pieces of deliveries here and there, contributing to TestNG both via pull requests and also on the mailer list and the same with Selenium as well (although I must admit I dont have too many contributions on Selenium), I have always wanted to … Continue reading

Testcase specific logs for a Selenium project

Problem statement: You would like to have a separate log file for every testcase so that if there are failures, its very easy for you to be able to debug and find out failures. For going through this, I am going to be using a selenium based test as an example. Selenium has a webdriver … Continue reading

Understanding PageFactory

I recently spent some time building some customisation around PageFactory. That was when I thought that maybe there is a need to explain PageFactory in detail apart from the user facing documentation that is available on the Selenium wiki page. The concept of PageFactory within the Selenium libraries consists of the following components : PageFactory … Continue reading

BrowserMobProxy meets JBrowserDriver

While I was casually skimming through the internet, I stumbled into this new flavour of webdriver which is being recommended as an alternate for “ghostdriver“. Its called “jBrowserDriver“. The github page should pretty much help you get started with using it. In this post we will just look at how do we couple a proxy … Continue reading

PageFactory, Page Objects and locators from an external file

The reason for this post is basically aimed at answering a forum question that came up. The question read : Can we pass the value for @FindBy from a xml file…? Means for our project we maintain a xml file which contain  all parameter( config, test data, object identification value , etc…) So, what i … Continue reading

Eavesdropping into WebDriver

 We all know that WebDriver already gives us a mechanism so that we can eavesdrop into WebDriver originated events. The way you get this done is by making use of EventFiringWebDriver. There are a lot of blog posts that explain to you how you can make use of EventFiringWebDriver to listen to events. Darrell Grainger has written … Continue reading

WebDriver as I know it

Many a times I have seen various different people ask this same question in various different forms.. “How does WebDriver work”.. Here’s how I understand its working. Ofcourse I could never even remotely come close to the actual crystal clear explanation that Simon Stewart shared in this link. So please do spend sometime reading it … Continue reading