Showing posts with label Webdriver Selenium learn. Show all posts
Showing posts with label Webdriver Selenium learn. Show all posts

Tuesday, October 4, 2016

Setup Selenium Java Project in Eclipse

Install Eclipse
If you don’t already have Eclipse installed on your system, then go ahead and install latest version of Eclipse from



Click on the Download button and complete the Installation.

After the installation is complete, Open Eclipse. 

Next, Create a new project in Eclipse by going to File -> New -> Project


 Select Java Project. Next, Enter the name of the project


Click Finish

Now that the Java Project is created, Let's import Selenium files. Right click on the project folder from the left navigation of Eclipse and select Properties.

 

Then select 'Java Build Path' and 'Libraries' tab. This is where all the selenium and lib files are added.

Next, Make sure all the Selenium files are downloaded and ready to upload. If not then download latest Selenium files from the selenium website (http://www.seleniumhq.org/download/)


Go Back to Eclipse and click 'Add External Jars' and navigate to Selenium files folder. Add all the Jar files.
Note - Add all the jar files inside Selenium folder as well as libs folder.



Now that all the Selenium files are added, Eclipse left nav would like this -



Next, Lets write some code to test and make sure selenium works fine. Continue to the next blog here 


Friday, September 30, 2016

Setup Java JDK on Mac OS for Selenium webdriver automation


Install Java on Mac OS Sierra
If you don’t have Java already install then first step is to install Java. Go to the Java download link and install latest Java SDK version.



Next select the JDK file that is compatible with your operating system. Since I am using mac OS, I will download macOSX dmg file.


Follow the steps and complete the installation.