|
9 | 9 |
|
10 | 10 | class SeleniumBrowser(Plugin):
|
11 | 11 | """
|
12 |
| - This parser plugin includes the following command-line options for Nose: |
| 12 | + This plugin adds the following command-line options to nosetests: |
13 | 13 | --browser=BROWSER (The web browser to use.)
|
14 | 14 | --cap-file=FILE (The web browser's desired capabilities to use.)
|
15 | 15 | --cap-string=STRING (The web browser's desired capabilities to use.)
|
16 | 16 | --user-data-dir=DIR (Set the Chrome user data directory to use.)
|
17 | 17 | --server=SERVER (The server / IP address used by the tests.)
|
18 | 18 | --port=PORT (The port that's used by the test server.)
|
19 | 19 | --proxy=SERVER:PORT (This is the proxy server:port combo used by tests.)
|
20 |
| - --agent=STRING (This designates the web browser's User Agent to use.) |
21 |
| - --mobile (The option to use the mobile emulator while running tests.) |
22 |
| - --metrics=STRING ("CSSWidth,Height,PixelRatio" for mobile emulator tests.) |
| 20 | + --agent=STRING (Modify the web browser's User-Agent string.) |
| 21 | + --mobile (Use the mobile device emulator while running tests.) |
| 22 | + --metrics=STRING (Set mobile "CSSWidth,CSSHeight,PixelRatio".) |
23 | 23 | --extension-zip=ZIP (Load a Chrome Extension .zip file, comma-separated.)
|
24 | 24 | --extension-dir=DIR (Load a Chrome Extension directory, comma-separated.)
|
25 |
| - --headless (The option to run tests headlessly. The default on Linux OS.) |
26 |
| - --headed (The option to run tests with a GUI on Linux OS.) |
| 25 | + --headless (Run tests headlessly. Default mode on Linux OS.) |
| 26 | + --headed (Run tests with a GUI on Linux OS.) |
27 | 27 | --start-page=URL (The starting URL for the web browser when tests begin.)
|
28 | 28 | --time-limit=SECONDS (Safely fail any test that exceeds the limit limit.)
|
29 |
| - --slow (The option to slow down the automation.) |
30 |
| - --demo (The option to visually see test actions as they occur.) |
31 |
| - --demo-sleep=SECONDS (The option to wait longer after Demo Mode actions.) |
| 29 | + --slow (Slow down the automation. Faster than using Demo Mode.) |
| 30 | + --demo (Slow down and visually see test actions as they occur.) |
| 31 | + --demo-sleep=SECONDS (Set the wait time after Demo Mode actions.) |
32 | 32 | --highlights=NUM (Number of highlight animations for Demo Mode actions.)
|
33 | 33 | --message-duration=SECONDS (The time length for Messenger alerts.)
|
34 |
| - --check-js (The option to check for JavaScript errors after page loads.) |
35 |
| - --ad-block (The option to block some display ads after page loads.) |
36 |
| - --block-images (The option to block images from loading during tests.) |
| 34 | + --check-js (Check for JavaScript errors after page loads.) |
| 35 | + --ad-block (Block some types of display ads after page loads.) |
| 36 | + --block-images (Block images from loading during tests.) |
37 | 37 | --verify-delay=SECONDS (The delay before MasterQA verification checks.)
|
38 | 38 | --disable-csp (This disables the Content Security Policy of websites.)
|
39 |
| - --enable-sync (The option to enable "Chrome Sync".) |
40 |
| - --use-auto-ext (The option to use Chrome's automation extension.) |
41 |
| - --swiftshader (The option to use Chrome's "--use-gl=swiftshader" feature.) |
42 |
| - --incognito (The option to enable Chrome's Incognito mode.) |
43 |
| - --guest (The option to enable Chrome's Guest mode.) |
44 |
| - --devtools (The option to open Chrome's DevTools when the browser opens.) |
45 |
| - --maximize-window (The option to start with the web browser maximized.) |
46 |
| - --save-screenshot (The option to save a screenshot after each test.) |
| 39 | + --enable-sync (Enable "Chrome Sync".) |
| 40 | + --use-auto-ext (Use Chrome's automation extension.) |
| 41 | + --swiftshader (Use Chrome's "--use-gl=swiftshader" feature.) |
| 42 | + --incognito (Enable Chrome's Incognito mode.) |
| 43 | + --guest (Enable Chrome's Guest mode.) |
| 44 | + --devtools (Open Chrome's DevTools when the browser opens.) |
| 45 | + --maximize (Start tests with the web browser window maximized.) |
| 46 | + --save-screenshot (Save a screenshot at the end of each test.) |
47 | 47 | --visual-baseline (Set the visual baseline for Visual/Layout tests.)
|
48 | 48 | --timeout-multiplier=MULTIPLIER (Multiplies the default timeout values.)
|
49 | 49 | """
|
|
0 commit comments