From f54fd5d7c3caa8df319a0115086bb4db8443d856 Mon Sep 17 00:00:00 2001 From: Julie Date: Wed, 27 Nov 2013 15:34:52 -0800 Subject: [PATCH] docs(install): update docs for the new webdriver-manager script --- README.md | 12 +++++++----- docs/getting-started.md | 7 +++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 14cd49c1a..7413f7ce6 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/docs/getting-started.md b/docs/getting-started.md index 92a224b5d..e60e4c3b4 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -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.