login¶
Login(browser, container=Selector(select='form.loginForm'))
¶
Bases: BaseComponent
flowchart TD
pytest_splunk_addon_ui_smartx.components.login.Login[Login]
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.login.Login
click pytest_splunk_addon_ui_smartx.components.login.Login href "" "pytest_splunk_addon_ui_smartx.components.login.Login"
click pytest_splunk_addon_ui_smartx.components.base_component.BaseComponent href "" "pytest_splunk_addon_ui_smartx.components.base_component.BaseComponent"
Component: Login To login into the Splunk instance
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='form.loginForm')
|
Source code in pytest_splunk_addon_ui_smartx/components/login.py
30 31 32 33 34 35 36 37 38 39 40 41 | |
login(username, password)
¶
Login into the Splunk instance :param username: Str the username for the splunk instance we want to access :param password: Str the password for the splunk instance we want to access
Source code in pytest_splunk_addon_ui_smartx/components/login.py
43 44 45 46 47 48 49 50 51 52 | |