Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
docs(install): update docs for the new webdriver-manager script
Browse files Browse the repository at this point in the history
  • Loading branch information
juliemr committed Nov 27, 2013
1 parent c579a1a commit f54fd5d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,20 @@ Then run the tests with
Appendix A: Setting up a standalone selenium server
---------------------------------------------------

WebdriverJS does not natively include the selenium server - you must start a standalone selenium server. All you need is the latest [selenium-server-standalone.](https://code.google.com/p/selenium/downloads/list)
WebdriverJS does not natively include the selenium server - you must start a standalone selenium server. All you need is the latest [selenium-server-standalone.](https://code.google.com/p/selenium/downloads/list). To drive individual browsers, you may need to install separate driver binaries.

To use with chrome browsers, [download chromedriver](http://chromedriver.storage.googleapis.com/index.html).
[More information about chromedriver](https://sites.google.com/a/chromium.org/chromedriver/)

A script is included to do the download for you - run (add the --nocd option if you do not want to install ChromeDriver)
The `webdriver-manager` script is included in the npm package to manage downloads for you. To see the options, run

./node_modules/protractor/bin/install_selenium_standalone
npm install -g protractor
webdriver-manager

Start the selenium standalone with
Download and start the selenium server with

./selenium/start
webdriver-manager update
webdriver-manager start

For alternate ways to download and start the selenium standalone, see
[the webdriver docs](http://docs.seleniumhq.org/docs/03_webdriver.jsp#running-standalone-selenium-server-for-use-with-remotedrivers).
7 changes: 3 additions & 4 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ The example test expects a selenium standalone server to be running at
localhost:4444. Protractor comes with a script to help download and install
the standalone server. Run

node_modules/protractor/bin/install_selenium_standalone
webdriver-manager update

This installs selenium standalone server and chromedriver to `./selenium`. Start
the server with
This installs selenium standalone server and chromedriver to `protractor/selenium`. Start the server with

./selenium/start
webdriver-manager start

Protractor is now available as a command line program which takes one argument,
a configuration file.
Expand Down

1 comment on commit f54fd5d

@facultymatt
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the reference config could be updated as well? Specifically https://github.com/angular/protractor/blob/master/referenceConf.js#L20? How about accounting for local and global install too?

Please sign in to comment.