by
1,258 13
0
2
167
1
Popular
Specified
Created
Modified Sep 2, 2017
No tags for this snippet yet.
Languagecsharp
LanguageMarkdown
SourceGitHub
SourceMyGists

Instructions for installing the most popular webdrivers, and then the latest version of the standalone Selenium server

Instructions for installing the most popular webdrivers, and then the latest version of the standalone Selenium server: 
selenium-instructions.md
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/2582061/Instructions-for-installing-the-most-pop?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
# Steps For Setting Up Selenium And The Webdrivers ### Install The Firefox Geckodriver * Download [the latest Geckodriver for Firefox](https://github.com/mozilla/geckodriver/releases) * then `mv` that file to `/usr/local/bin/geckodriver` and `sudo chmod +x /usr/local/bin/geckodriver` * make sure you have `"webdriver.firefox.profile" : "geckodriver",` in your `nightwatch.json` file if you are using it ### Install The Chromedriver * Download the latest version [from the Chrome site](https://sites.google.com/a/chromium.org/chromedriver/downloads) * unzip it if it is a zip file * then `mv` that file to `/usr/local/bin/chromedriver` and `sudo chmod +x /usr/local/bin/chromedriver` ### Install the Safari Driver * Download the `SafariDriver.safariextz` [from the release site](http://selenium-release.storage.googleapis.com/index.html?path=2.45/) * Double click on the file and it will open in Safari * Accept the file as trusted * It will now show in your extensions ### Build the latest Selenium binary * `git clone git@github.com:SeleniumHQ/selenium.git` * `cd selenium` * `./go clean release` * `cd build/dist` * You can now run the server with the following: `java -jar selenium-server-standalone-3.0.0-beta1.jar` * _you may have a server of a different name depending on when you read this tutorial_ ### Running the server * cd to the directory where you build the jar file * run: `java -jar selenium-server-standalone-3.0.0-beta1.jar` You can also alias the function in a `~/.bashrc` or `~/.zshrc` with: ```sh alias selenium="java -jar /path/to/build/dist/folder/selenium-server-standalone-3.0.0-beta1.jar" ``` Remember: _You may have a server of a different name depending on when you read this tutorial_
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus