button¶
Button(browser, container)
¶
Bases: BaseControl
flowchart TD
pytest_splunk_addon_ui_smartx.components.controls.button.Button[Button]
pytest_splunk_addon_ui_smartx.components.controls.base_control.BaseControl[BaseControl]
pytest_splunk_addon_ui_smartx.components.base_component.BaseComponent[BaseComponent]
pytest_splunk_addon_ui_smartx.components.controls.base_control.BaseControl --> pytest_splunk_addon_ui_smartx.components.controls.button.Button
pytest_splunk_addon_ui_smartx.components.base_component.BaseComponent --> pytest_splunk_addon_ui_smartx.components.controls.base_control.BaseControl
click pytest_splunk_addon_ui_smartx.components.controls.button.Button href "" "pytest_splunk_addon_ui_smartx.components.controls.button.Button"
click pytest_splunk_addon_ui_smartx.components.controls.base_control.BaseControl href "" "pytest_splunk_addon_ui_smartx.components.controls.base_control.BaseControl"
click pytest_splunk_addon_ui_smartx.components.base_component.BaseComponent href "" "pytest_splunk_addon_ui_smartx.components.base_component.BaseComponent"
Entity_Component : Button
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
browser
|
The selenium webdriver |
required | |
container
|
The locator of the container where the control is located in. |
required |
Source code in pytest_splunk_addon_ui_smartx/components/controls/button.py
28 29 30 31 32 33 | |
click()
¶
Click on the button. Falls back to JavaScript click if the element is intercepted (e.g. CollapsiblePanel toggle buttons in @splunk/react-ui v5).
Source code in pytest_splunk_addon_ui_smartx/components/controls/button.py
35 36 37 38 39 40 41 42 43 | |