Sunday, September 23, 2012

Webdriver change-log URL

Webdriver change-log URL

http://code.google.com/p/selenium/source/browse/trunk/java/CHANGELOG

This link will help you understand the changes and bug-fixes made to Webdriver.

--- 

Wednesday, September 19, 2012

Webdriver NodeJS

What languages do Selenium2/ Webdriver support ?


I think many people are not aware of NodeJS.

Selenium server speaks a simple language called the Webdriver Protocol.
We have NodeJS module called wd that has implemented Webdriver protocol in JavaScript.

What is NodeJS? Below screen shot can help you understand




---

Thursday, September 13, 2012

Smartest smart phone?

Smartest smart phone?



---

Sunday, September 9, 2012

SeleniumWebdriver - Page objects Implementation - Part 2

SeleniumWebdriver - Page objects Implementation - Part 2

SeleniumWebdriver - Page objects Implementation - Part 1

After numerous requests, today I have got time to remove the unnecessary and confidential code and upload the entire project.

This framework is built by integrating Selenium2 + TestNG + ANT + VB Script.

It has taken lot of time to develop this framework, as Selenium is open-source I would like to dedicate this framework to the open-source community. Thanks a lot to Selenium Team for developing awesome  tool.


Download Link (Extract the files into a folder, Elclipse can't extract the files)

1. Create new project "MercuryTours" in eclipse, download the rar file and extract directly into new MercuryTours folder of your corresponding work space.
2. Add the Selenium libraries using configure build path and refresh the project. If there are no error, every thing went fine, attaching the screen shot below.
How to setup Selenium?



3. If you have ANT setup, you can directly run the entire project by selecting the "run", attaching the screen shot below OR you can run the test directly in the eclipse by selecting any class or method and hit play.



4. Test results will be automatically stored the following location "C:\Selenium2_Results\MercuryTours" with time stamp. It will automatically send email notifications, update the details in the "SendEmail.vbs".

I hope above framework will be used for those people who are planning to implement keyword driven framework using page objects.

There are lot of things to explain in this framework, I would suggest to go through the part1 and explore the code.

Good Luck!




Thursday, September 6, 2012

Selenium - java.lang.NullPointerException

Selenium - java.lang.NullPointerException

When do we get this exception?

If we don't initialize the driver object and start using it in the code we can notice this exception.
In the below screen shot I have commented the initialize code and started running the test, system displayed  NullPointerException. In my case, unknowing commented it while debugging the code.

When you get this king of exception, check the driver object initialization.


---