Update the ReadMe
This commit is contained in:
parent
1916f07fde
commit
9820dccc48
|
@ -6,7 +6,7 @@
|
|||
|
||||
![](http://cdn2.hubspot.net/hubfs/100006/images/sb_demo.gif "SeleniumBase")
|
||||
|
||||
(Above: Actual demo of [my_first_test.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py) running against [xkcd.com](http://xkcd.com/353/) in Demo Mode, which automatically highlights page elements being acted on.)
|
||||
(Actual demo of [my_first_test.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py) running against [xkcd.com](http://xkcd.com/353/) in [Demo Mode](#seleniumbase_demo_mode).)
|
||||
|
||||
**Table of Contents / Quick Navigation:**
|
||||
> * [Feature List](#feature_list)
|
||||
|
@ -159,7 +159,8 @@ nosetests my_first_test.py --with-selenium --browser=phantomjs -s
|
|||
|
||||
After the test completes, in the console output you'll see a dot (``.``) on a new line, representing a passing test. (On test failures you'll see an ``F`` instead, and on test errors you'll see an ``E``). It looks more like a moving progress bar when you're running a ton of unit tests side by side. This is part of nosetests. After all tests complete (in this case there is only one), you'll see the "``Ran 1 test in ...``" line, followed by an "``OK``" if all nosetests passed. The ``--with-selenium`` option is required for running GUI tests. If no browser is specified, Chrome will become the default. The ``-s`` option is optional, and that makes sure that any standard output is printed immediately on the command line when tests have print statements in them, which makes debugging much easier.
|
||||
|
||||
If the example test is moving too fast for your eyes to see what's going on, you can run it in Demo Mode by adding ``--demo_mode`` on the command line, which pauses the browser for about a second (by default) after each action, and highlights the element being acted on:
|
||||
<a id="seleniumbase_demo_mode"></a>
|
||||
If the example test is moving too fast for your eyes to see what's going on, you can run it in Demo Mode by adding ``--demo_mode`` on the command line, which pauses the browser briefly between actions, and highlights page elements being acted on:
|
||||
|
||||
```bash
|
||||
nosetests my_first_test.py --with-selenium --browser=chrome -s --demo_mode
|
||||
|
|
Loading…
Reference in New Issue