base_web_client_actions
WebClientActions
Bases: WebDriverInteractions
, ElementInteractions
, UtilityMethods
A class used to represent WebClientActions.
Source code in libs\cafex_ui\src\cafex_ui\web_client\web_client_actions\base_web_client_actions.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|
__init__(web_driver=None, default_explicit_wait=None, default_implicit_wait=None)
Initializes WebClientActions with a driver and optional explicit wait.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
web_driver
|
WebDriver
|
The selenium webdriver instance. if not provided, it will be picked from Session Store |
None
|
default_explicit_wait
|
int
|
The default explicit wait time (in seconds). If not provided, it will be retrieved from ConfigUtils. |
None
|
Source code in libs\cafex_ui\src\cafex_ui\web_client\web_client_actions\base_web_client_actions.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
set_implicit_wait(wait_time=None)
Set the implicit wait time for the driver. If no value is provided, the default implicit wait time from the configuration file will be used.
Examples:
from cafex_ui import CafeXWeb CafeXWeb().set_implicit_wait(30)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wait_time
|
int
|
The implicit wait time in seconds. |
None
|
Returns:
Type | Description |
---|---|
None
|
None |
Source code in libs\cafex_ui\src\cafex_ui\web_client\web_client_actions\base_web_client_actions.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|