Skip to content

button

Button(browser, container)

Bases: BaseControl

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
27
28
29
30
31
32
def __init__(self, browser, container):
    """
    :param browser: The selenium webdriver
    :param container: The locator of the container where the control is located in.
    """
    super().__init__(browser, container)

click()

Click on the button

Source code in pytest_splunk_addon_ui_smartx/components/controls/button.py
34
35
36
37
38
def click(self):
    """
    Click on the button
    """
    self.container.click()