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 javadoc message in Eclipse

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.

Alright. Ready?

Here we go!

Step 1: Go to the following website:

http://docs.seleniumhq.org/download/

Selenium docs download 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:

javadoc link option on selenium's page

When you click on it, it will take you to the following index page:

github io 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:

http://seleniumhq.github.io/selenium/docs/api/java/index.html

Step 4: Cycle to Eclipse and then to your project. In the navigation pane, find your project name and right click on it:

open build path by right clicking on your project in Eclipse

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.

expand selenium server standalone jar

Step 6: Click on Javadoc location then on the Edit… option located on the right-hand side.

edit option located on right

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.

remove index html part from end

Step 8: Then click on Ok.

click on ok How to attach Selenium Javadoc in Eclipse

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.

Selenium javadoc info begins to show

There! Now we know.

john snow meme

Also, dig in to find out our other Selenium Webdriver related materials. Happy learning!

Scottshak

Poet. Author. Blogger. Screenwriter. Director. Editor. Software Engineer. Author of "Songs of a Ruin" and proud owner of four websites and two production houses. Also, one of the geekiest Test Automation Engineers based in Ahmedabad.

You may also like...

Leave a Reply