Skip to content

InputUtils

robo_appian.utils.components.InputUtils

InputUtils

Utility class for interacting with input components in Appian UI.

Usage Example:

# Set a value in an input field
from robo_appian.utils.components.InputUtils import InputUtils
InputUtils.setInputValue(wait, "Username", "test_user")

findComponent(wait, label) staticmethod

Finds an input component by its label.

Parameters:

Name Type Description Default
wait WebDriverWait

Selenium WebDriverWait instance.

required
label str

The visible text label of the input component.

required

Returns:

Type Description

The Selenium WebElement for the input component.

Example

InputUtils.findComponent(wait, "Username")

setInputValue(wait, label, value) staticmethod

Sets a value in an input component identified by its label.

Parameters:

Name Type Description Default
wait WebDriverWait

Selenium WebDriverWait instance.

required
label str

The visible text label of the input component.

required
value str

The value to set in the input field.

required

Returns:

Type Description

The Selenium WebElement for the input component after setting the value.

Example

InputUtils.setInputValue(wait, "Username", "test_user")

setSearchInputValue(wait, label, value) staticmethod

Sets a value in a search-enabled input component identified by its label.

Parameters:

Name Type Description Default
wait WebDriverWait

Selenium WebDriverWait instance.

required
label str

The visible text label of the search input component.

required
value str

The value to set in the search input field.

required

Returns:

Type Description

None

Example: InputUtils.setSearchInputValue(wait, "Search", "Appian")

setValueAndSubmit(wait, label, value) staticmethod

Sets a value in an input component identified by its label and submits it.

Parameters:

Name Type Description Default
wait WebDriverWait

Selenium WebDriverWait instance.

required
label str

The visible text label of the input component.

required
value str

The value to set in the input field.

required

Returns:

Type Description

The Selenium WebElement for the input component after setting the value and submitting.

Example

InputUtils.setValueAndSubmit(wait, "Username", "test_user")

setValueAndSubmitUsingComponent(component, value) staticmethod

Sets a value in an input component and submits it using the provided component element.

Parameters:

Name Type Description Default
component WebElement

The Selenium WebElement for the input component.

required
value str

The value to set in the input field.

required

Returns:

Type Description

The Selenium WebElement for the input component after setting the value and submitting.

Example

InputUtils.setValueAndSubmitUsingComponent(component, "test_user")

setValueUsingComponent(component, value) staticmethod

Sets a value in an input component using the provided component element.

Parameters:

Name Type Description Default
component WebElement

The Selenium WebElement for the input component.

required
value str

The value to set in the input field.

required

Returns:

Type Description

The Selenium WebElement for the input component after setting the value.

Example

InputUtils.setValueUsingComponent(component, "test_user")