DateUtils
robo_appian.utils.components.DateUtils
DateUtils
Utility class for interacting with date components in Appian UI.
Usage Example:
# Set a date value
from robo_appian.utils.components.DateUtils import DateUtils
DateUtils.setDateValue(wait, "Start Date", "01/01/2024")
click(wait, label)
staticmethod
Clicks on a date component identified by its label.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wait
|
WebDriverWait
|
Selenium WebDriverWait instance. |
required |
label
|
str
|
The visible text label of the date component. |
required |
Returns:
Type | Description |
---|---|
The Selenium WebElement for the date component after clicking. |
Example
DateUtils.click(wait, "Start Date")
findComponent(wait, label)
staticmethod
Finds a date component by its label.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wait
|
WebDriverWait
|
Selenium WebDriverWait instance. |
required |
label
|
str
|
The visible text label of the date component. |
required |
Returns:
Type | Description |
---|---|
The Selenium WebElement for the date component. |
Example
DateUtils.findComponent(wait, "Start Date")
setDateValue(wait, label, value)
staticmethod
Sets a date value in a date component identified by its label.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wait
|
WebDriverWait
|
Selenium WebDriverWait instance. |
required |
label
|
str
|
The visible text label of the date component. |
required |
value
|
str
|
The date value to set (e.g., "01/01/2024"). |
required |
Returns:
Type | Description |
---|---|
The Selenium WebElement for the date component after setting the value. |
Example
DateUtils.setDateValue(wait, "Start Date", "01/01/2024")
setDateValueAndSubmit(wait, label, value)
staticmethod
Sets a date value in a date component identified by its label and submits the form.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
wait
|
WebDriverWait
|
Selenium WebDriverWait instance. |
required |
label
|
str
|
The visible text label of the date component. |
required |
value
|
str
|
The date value to set (e.g., "01/01/2024"). |
required |
Returns:
Type | Description |
---|---|
The Selenium WebElement for the date component after setting the value. |
Example
DateUtils.setDateValueAndSubmit(wait, "Start Date", "01/01/2024")
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")