tabs¶
Tab(browser, container=Selector(select='[data-test="tab-bar"]'))
¶
Bases: BaseComponent
flowchart TD
pytest_splunk_addon_ui_smartx.components.tabs.Tab[Tab]
pytest_splunk_addon_ui_smartx.components.base_component.BaseComponent[BaseComponent]
pytest_splunk_addon_ui_smartx.components.base_component.BaseComponent --> pytest_splunk_addon_ui_smartx.components.tabs.Tab
click pytest_splunk_addon_ui_smartx.components.tabs.Tab href "" "pytest_splunk_addon_ui_smartx.components.tabs.Tab"
click pytest_splunk_addon_ui_smartx.components.base_component.BaseComponent href "" "pytest_splunk_addon_ui_smartx.components.base_component.BaseComponent"
Component: Tab To change the tab in configuration page
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
browser
|
The selenium webdriver |
required | |
container
|
Container in which the table is located. Of type dictionary: {“by”:…, “select”:…} |
Selector(select='[data-test="tab-bar"]')
|
Source code in pytest_splunk_addon_ui_smartx/components/tabs.py
30 31 32 33 34 35 36 37 38 39 40 41 | |
open_tab(tab)
¶
Open a specified tab :param tab: id of the tab
Source code in pytest_splunk_addon_ui_smartx/components/tabs.py
43 44 45 46 47 48 49 50 51 52 | |