![Selenium WebDriver Quick Start Guide](https://wfqqreader-1252317822.image.myqcloud.com/cover/282/36699282/b_36699282.jpg)
上QQ阅读APP看书,第一时间看更新
Installing Java 8
Follow the instructions below to install Java 8:
- Go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html and click on the appropriate version. I have selected the 64-bit Windows version since mine is a Windows machine.
- Once the file has downloaded, run the .exe file. Java will start installing it onto your machine. Next, we have to set two environment variables in order to use Java.
- Go to Control Panel and click Advanced System Settings.
- Click on Environment variables and add two system variables:
- One is JAVA_HOME. Provide the path of the root folder where Java is installed. In this case, this will be C:\Program Files\Java\jdk1.8.0_152.
- The second is the Path variable. Remember that this variable has to be appended after adding a ;. Here, the path of the bin folder has to be specified. In this case, this will be C:\Program Files\Java\jdk1.8.0_152\bin.
- The next step is to check our configuration. Open the Command Prompt and type java –version:
![](https://epubservercos.yuewen.com/D05A6A/19470386908849106/epubprivate/OEBPS/Images/09fe0663-ce70-4241-84c0-d11beff15d35.png?sign=1738845475-Nhqy4JmVK0fkUOsa7h1ImTvmWwivFmZX-0-27fab9f63ee813885f7aac0cf24b7438)
If you get an output similar to the one shown in the preceding screenshot, you are all set to start coding.
Now, let's get our hands dirty!