UNPKG

2.46 kBMarkdownView Raw
1
2Webdriver Manager [![CircleCI Status](https://circleci.com/gh/angular/webdriver-manager.svg?style=shield)](https://circleci.com/gh/angular/webdriver-manager) [![Join the chat at https://gitter.im/angular/webdriver-manager](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angular/webdriver-manager?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
3=================
4
5A selenium server and browser driver manager for your end to end tests. This is the same tool as `webdriver-manager` from the [Protractor](https://github.com/angular/protractor) repository.
6
7**Note:** Version 9 and lower please reference [pose/webdriver-manager](https://github.com/pose/webdriver-manager). If there are features that existed in version 9 and lower, please open up an issue with the missing feature or a create a pull request.
8
9Getting Started
10---------------
11
12```
13npm install -g webdriver-manager
14```
15
16Setting up a Selenium Server
17----------------------------
18
19Prior to starting the selenium server, download the selenium server jar and driver binaries. By default it will download the selenium server jar and chromedriver binary.
20
21```
22webdriver-manager update
23```
24
25Starting the Selenium Server
26----------------------------
27
28By default, the selenium server will run on `http://localhost:4444/wd/hub`.
29
30
31```
32webdriver-manager start
33```
34
35Other useful commands
36---------------------
37
38View different versions of server and driver files:
39
40```
41webdriver-manager status
42```
43
44Clear out the server and driver files. If `webdriver-manager start` does not work, try to clear out the saved files.
45
46```
47webdriver-manager clean
48```
49
50Running / stopping server in background process (stopping is not yet supported on standalone server 3.x.x):
51
52```
53webdriver-manager start --detach
54webdriver-manager shutdown
55```
56
57Help commands
58-------------
59
60Wedriver-manager has a main help option: `webdriver-manager help`. There are also other built in help menus for each of the commands. So for example, if you would like to look up all the flag options you can set in `update`, you could run `webdriver-manager update help`.
61
62Here are a list of all the commands with help:
63
64```
65webdriver-manager update help
66webdriver-manager start help
67webdriver-manager clean help
68webdriver-manager status help
69```
70
71Other topics:
72--------------
73
74- [mobile browser support](docs/mobile.md)
75- [protractor support](docs/protractor.md)
76- [set specific versions](docs/versions.md)
\No newline at end of file