2.0 KiB
Executable File
2.0 KiB
Executable File
Demo Mode 🎦
🔵 Demo Mode helps you see what a test is doing. If a test is moving too fast for your eyes, run it in Demo Mode, which pauses the browser briefly between actions, highlights page elements being acted on, and displays assertions:
pytest my_first_test.py --demo
Here's how to run test_swag_labs.py from examples/ in Demo Mode:
pytest test_swag_labs.py --demo
Here's an example that only uses the highlight()
method for highlighting browser actions:
(test_error_page.py from examples/)
pytest test_error_page.py
Here's an example of a mobile test in Demo Mode: