You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
202
-
If the example is moving too fast for your eyes to see what's going on, there are 2 things you can do. Add either of the following:
202
+
203
+
If the example is moving too fast for your eyes to see what's going on, there are a few things you can do.
204
+
You can add ``--demo_mode`` on the command line, which pauses the browser for about a second (by default) after each action:
You can override the default wait time by either updating [settings.py](https://github.com/mdmintz/SeleniumBase/blob/master/seleniumbase/config/settings.py) or by using ``--demo_sleep={NUM}`` when using Demo Mode. (NOTE: If you use ``--demo_sleep={NUM}`` without using ``--demo_mode``, nothing will happen.)
You can also add either of the following to your scripts to slow down the tests:
203
217
204
218
```python
205
-
import time; time.sleep(5) # sleep for 5 seconds (add this after the line you want to pause on)
206
-
import ipdb; ipdb.set_trace() # waits for your command. n = next line of current method, c = continue, s = step / next executed line (will jump)
219
+
import time; time.sleep(5) # sleep for 5 seconds (add this after the line you want to pause on)
220
+
import ipdb; ipdb.set_trace() # waits for your command. n = next line of current method, c = continue, s = step / next executed line (will jump)
207
221
```
208
222
209
223
(NOTE: If you're using pytest instead of nosetests and you want to use ipdb in your script for debugging purposes, you'll either need to add "--capture=no" on the command line, or use "import pytest; pytest.set_trace()" instead of using ipdb. More info on that [here](http://stackoverflow.com/questions/2678792/can-i-debug-with-python-debugger-when-using-py-test-somehow).)
0 commit comments