How to install selenium webdriver?


Steps to Create a Selenium Project in Eclipse

Step 1: Download Eclipse
http://www.eclipse.org/downloads/

Step 2: Launch Eclipse

[Note:] If you get a prompt to select a workspace,provide a path to store your projects in a folder

Step 3:Go to File>New>Project>Java Project>(click on next)

Step 4: Provide Project Name eg. Automationlab>(click on finish)

Step 5: Now you’ll see the folder “AutomationLab” listed on the editor.Double click the folder>Select ‘src’ subfolder

Step 6: Right click on ‘src’ folder>New>Class

Step 7:Type in a Name for your Java Class file,cick on the check box for “public static void main (String args[])>Finish

you are ready to go,if you see the below lines of code

public class lab {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub

    }

}

Hold on…we are almost there!

Step 8: Go back to parent folder ‘AutomationLab’>Right click>go to Properties

Step 9: Go to Java Build Path>Click on Add External JARs,browse all the files from the JAR that you’ve downloaded (i.e selenium),Link is provided for selenium download in article “What is selenium“.

Good Luck!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: