Repository navigation
Using WebDriver
There are two downloads that you will generally want to chose:
-
selenium-server-standalone.jar- This contains the Selenium server (required if you want to use the Selenium 1.x classes) and the RemoteWebDriver server as a standalone jar, that can be executed usingjava -jar. Note that this JAR contains all of the required dependencies. If you'd prefer to manage the classpath yourself, then download the "selenium-server-XXX.zip" file. -
The language bindings for your language of choice. If you're using Java, then download the latest
selenium-java-XXX.zipwhere "XXX" represents the version number. For .Net, the appropriate zip is theselenium-dotnet-XXX.zip.
To use the client libraries (the remote webdriver client, ChromeDriver, FirefoxDriver, HtmlUnitDriver, InternetExplorerDriver, OperaDriver, and support libraries) Add the following dependencies to your project:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.26.0</version>
</dependency>
If you want to start a selenium server, you will need the following dependency:
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.26.0</version>
</dependency>
That's it.
- Follow the instructions in CheckOut in order to get the latest version of WebDriver.
- Run
rakewithout any targets (that is, just runrake) This will run the unit tests too, and if that's not what you want to do, just run:rake all - Figure out which drivers you will need on your project. You'll need at least common, but depending on your needs you may or may not want the drivers for Firefox (FirefoxDriver), Internet Explorer (InternetExplorerDriver), and/or HtmlUnit (HtmlUnitDriver) The JARs for the classes in "org.openqa.selenium" are located in subdirectories of the "build" directory. It should be obvious what is where. The OperaDriver is located in /third_party/java/opera-driver/.
- Now, just copy the required runtime libraries and the newly built jars on to your CLASSPATH. Read the
build.descfiles to figure out what these are.
This wiki is not where you want to be! Visit the Wiki Home for more useful links
Getting Involved
Triaging Issues
Releasing Selenium
Moved to Official Documentation
Architectural Overview
Automation Atoms
Bot Style Tests
Buck
Continuous Integration
Crazy Fun Build
Design Patterns
Desired Capabilities
Developer Tips
Domain Driven Design
Firefox Driver
Firefox Driver Internals
Focus Stealing On Linux
Frequently Asked Questions
Google Summer Of Code
Grid Platforms
History
HtmlUnitDriver
Internet Explorer Driver
InternetExplorerDriver Internals
LoadableComponent
Logging
Next Steps
PageFactory
PageObjects
Python Bindings
RemoteWebDriver
RemoteWebDriverServer
Roadmap
Ruby Bindings
Ruby Development
Scaling WebDriver
SeIDE Release Notes
Selenium Emulation
Selenium Grid 4
Selenium Help
Shipping Selenium 3
The Team
TLC Meetings
Untrusted SSL Certificates
WebDriver For Mobile Browsers
WebDriverJs
Writing New Drivers
Xpath In WebDriver