textbox¶
TextBox(browser, container, encrypted=False)
¶
Bases: BaseControl
Entity-Component: TextBox
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/textbox.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
clear_text()
¶
Clears the textbox value
Source code in pytest_splunk_addon_ui_smartx/components/controls/textbox.py
82 83 84 85 86 |
|
get_type()
¶
Get type of value entered in textbox :return: Type of input within the textbox
Source code in pytest_splunk_addon_ui_smartx/components/controls/textbox.py
88 89 90 91 92 93 |
|
get_value()
¶
get value from the textbox :return: Str The current value of the textbox
Source code in pytest_splunk_addon_ui_smartx/components/controls/textbox.py
66 67 68 69 70 71 |
|
is_editable()
¶
Returns True if the Textbox is editable, False otherwise :return: Bool whether or not the textbox is editable
Source code in pytest_splunk_addon_ui_smartx/components/controls/textbox.py
73 74 75 76 77 78 79 80 |
|
set_value(value)
¶
set value of the textbox
Source code in pytest_splunk_addon_ui_smartx/components/controls/textbox.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
wait_to_be_editable()
¶
Wait for the textbox field to be editable
Source code in pytest_splunk_addon_ui_smartx/components/controls/textbox.py
95 96 97 98 99 100 101 102 103 |
|