Skip to content

ButtonUtils

robo_appian.utils.components.ButtonUtils

ButtonUtils

Utility class for interacting with button elements in Selenium-based Appian UI automation.

Usage Example:

from selenium.webdriver.support.ui import WebDriverWait
from robo_appian.utils.components.ButtonUtils import ButtonUtils

wait = WebDriverWait(driver, 10)
ButtonUtils.click(wait, "Login")

click(wait, label) staticmethod

Clicks a button identified by its label.

Parameters:

Name Type Description Default
wait WebDriverWait

Selenium WebDriverWait instance.

required
label str

The visible text label of the button.

required

Example: ButtonUtils.click(wait, "Submit")

clickInputButtonById(wait, id) staticmethod

Finds and clicks an input button by its HTML id attribute.

Parameters:

Name Type Description Default
wait WebDriverWait

Selenium WebDriverWait instance.

required
id str

The HTML id of the input button.

required
Example

ButtonUtils.clickInputButtonById(wait, "button_id")

find(wait, label) staticmethod

Finds a button element by its label.

Parameters:

Name Type Description Default
wait WebDriverWait

Selenium WebDriverWait instance.

required
label str

The visible text label of the button.

required

Returns:

Type Description

The Selenium WebElement for the button.

Example

ButtonUtils.find(wait, "Submit")