<img alt="" src="https://secure.leadforensics.com/150446.png " style="display:none;">
Go to top icon

Automation testing from Selenium IDE to WebDriver

Uddhav Naik Aug 04, 2016

Testing selenium Automation testing WebDriver

Scripts recorded in Selenium IDE can be easily transferred to and run from the WebDriver. You just have to export the test case from IDE in your preferred programming language & testing framework.

Note: The exported test case would run on Firefox by default.

Following are the steps that are to be followed to export your test case: 

  1. Select the Test Case that is to be exported
  2. Go to > File menu 
  3. Select Export Test Case As
  4. Choose your preferred option.
    For example: If java is the preferred language then save the test case as ‘.java’ format.

img-1-12.png

Further, add the selenium language bindings (http://docs.seleniumhq.org/download/) to your Eclipse project build path.

Following are the steps need to be followed:

  1. Right-click the project folder and select Build Path
  2. Build Path -> Configure Build Path
  3. Configure Build Path -> Add External JARS
  4. Select the location where you have stored the JARS on your local machine and import all the JARS

img-2-7.png

img-3-3.png

  1.  Once the above steps are completed copy the exported test case file into your Eclipse workspace. 
  2. Run the file from eclipse and it’s done.
    For example:
    If the test case was exported as TestNG then simply right-click the file > Run As > TestNG Test

img-4-3.png

This process allows you to test on multiple web browsers by pushing away the limitation of IDE which only runs on Firefox.

Prerequisites:

e-Zest is a leading digital innovation partner for enterprises and technology companies that utilizes emerging technologies for creating engaging customers experiences. Being a customer-focused and technology-driven company, it always helps clients in crafting holistic business value for their software development efforts. It offers software development and consulting services for cloud computing, enterprise mobility, big data and analytics, user experience and digital commerce.