Google+

325. Upgrading Selenium WebDriver






I have started writing Selenium WebDriver posts from a month. When I have started writing, the latest Selenium WebDriver version available for download was 2.32.0.

Now I would like to check if there are any latest version available by following the below steps:

1. Open www.seleniumhq.org

2. Click on 'Download' tab to navigate to the downloads page as shown below:



3. In the Download page, view the latest version of the Selenium WebDriver as shown below:





4. I've observed that there is a new version 2.33.0 for Selenium WebDriver available for me to download  (currently I and using 2.32.0 version). So I would like to upgrade it to the latest version by following the below steps.

Upgrading to the Latest Selenium WebDriver:

Download the latest version of Selenium WebDriver

1. Download the new or latest version of Selenium WebDriver (i.e. 2.33.0 at present) from the www.Seleniumhq.org/download site and place the downloaded ZIP file in any folder as shown below: 




Remove the older version of Selenium WebDriver by removing the configured JAR files:

2. Now open the Eclipse IDE containing the Java Project that is configured with the older WebDriver version, right click on the Project and select 'Properties' option as shown below:




3. Ensure that 'Properties for Project' dialog is displayed, select all the displayed JAR files and click on 'Remove' button as shown below:



4. Observe that all the JAR files of the older Selenium WebDriver got removed and click on 'OK' button as shown below:



5. Expand the lib folder of the Project in Eclipse IDE, select all the JAR files of older WebDriver version, right click on the selected JAR files and click on 'Delete' option as shown below:




6. Click on 'OK' Button on the 'Confirmation' dialog as shown below:



7. Ensure that the lib folder is now empty as shown below:



Configure the latest version of Selenium WebDriver by adding and configuring its JAR files to the Project:

8. Extract the ZIP file downloaded in Step 1 as shown below (I use WinRAR for extracting the ZIP files):



9. Ensure that the ZIP file got extracted as shown below:



10. Open the Extracted folder and copy the below shown JAR files as shown below:



11. Right click on the lib folder of the Project in Eclipse IDE and paste the above copied JAR files as shown below:



12. Ensure that the two JAR files got copied to the lib folder as shown below:


13. Now open the libs folder in the Extracted folder as shown below:


14. Select all the JAR files inside this folder, right click on the selected JAR files and select 'Copy' option as shown below:


15. Right click on the lib folder of the Project in Eclipse IDE and paste the above copied JAR files as shown below:


16. Ensure that all the JAR files got copied to the lib folder as shown below:



17. Right click on the Project and select 'Properties' option as shown below:



18. Ensure that the 'Properties for Project' dialog is displayed and click on 'Add JARS' button as shown below:


19. Ensure that 'JAR Selection' dialog is displayed and select all the newly added JAR files under the lib folder and click on 'OK' button as shown below:



20. Ensure all the selected JAR files got added in the 'Properties for Project' dialog and click on 'OK' button:


Run the Test after configuring the Project with the latest Selenium WebDriver version to confirm there are no problems after configuration:

21. Run the 'Class15.java' file by selecting the 'JUnit Test' option as shown below:




22. Ensure that the Test got passed without any errors as shown below:







Download this Project:


Click here to download this project and import into Eclipse IDE  on your machine.





Please comment below to feedback or ask questions.

HTML Basics will be explained in the next post.



No comments: