How to Attach Selenium Javadoc in Eclipse | Selenium Javadoc
This tutorial intends to help you figure out how to attach Selenium Javadoc in Eclipse. It’s not a big deal really. If you follow the steps mentioned herein, you will be fine.
So I was working on Eclipse when I noticed that on placing the mouse on a certain Selenium Class no information regarding that class was shown. It gave the following message in the form of a Note instead:
No attached source? No attached Javadoc?
That’s when I decided to look it up and create this tutorial about how to attach Selenium Javadoc in Eclipse to help fellow mates.
Steps on How to Attach Selenium Javadoc in Eclipse
So I am assuming you have already opened Eclipse in the backdrop, and that you were already working on some project of yours.
Here we go!
Step 1: Go to the following website:
Step 2: Scroll down below and look for the link of Javadoc in the Selenium Client & WebDriver Language Bindings Section. Then click on it:
When you click on it, it will take you to the following index page:
Here you can find all the Packages and Classes related to every Selenium functions that you are going to ever use.
Step 3: Just copy the URL of the page which is:
Step 4: Cycle to Eclipse and then to your project. In the navigation pane, find your project name and right click on it:
It will open Configure Build Path Dialog box for you.
Step 5: Expand the Selenium-Server-Standalone jar file and look for “Javadoc location” option.
Step 6: Click on Javadoc location then on the Edit… option located on the right-hand side.
Doing so will open a small dialog box for Javadoc.
You will get a textbox to enter Javadoc location path.
Step 7: Just paste what you had copied in Step 3, and then remove the index.html bit from the end.
Step 8: Then click on Ok.
You can see that where it used to say Javadoc none, there is the location that we had specified.
Step 9: Just click on Ok again.
Now when you will go back to your project and place your mouse over any Class that’s related to Selenium Javadoc, you will get some information about it in a small pop up block.
There! Now we know.
Also, dig in to find out our other Selenium Webdriver related materials. Happy learning!