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
test_data, # DB fixtures, fixture record/replay, form auto-fill
332
+
)
333
+
```
334
+
335
+
The original Selenium-flavoured top-level surface (`webdriver_wrapper_instance`,
336
+
`execute_action`, `TestObject`, …) is unchanged.
337
+
268
338
## Quick Start
269
339
270
340
### Direct API
@@ -346,6 +416,20 @@ The executor maps a string command name to a Python callable. Every backend, int
346
416
]
347
417
```
348
418
419
+
### Pacing actions
420
+
421
+
`WR_sleep` blocks the executor thread for a given number of seconds — useful when the page needs settle time, when a JS animation needs to finish, or when an example wants to hold the browser open for the user to watch:
422
+
423
+
```python
424
+
[
425
+
["WR_to_url", {"url": "https://example.com"}],
426
+
["WR_sleep", {"seconds": 2.5}],
427
+
["WR_get_screenshot_as_png"],
428
+
]
429
+
```
430
+
431
+
Negative or non-numeric `seconds` raise `ValueError`. For pacing inside JavaScript (e.g. waiting on a custom event from the page) use `WR_execute_async_script` with a `setTimeout`-driven callback.
0 commit comments