SetText
When to use the SetText activity
This activity is used to type the input data into any field or textbox in the webpage.
Figure 1
Activity Name |
Picture |
SetText |
|
Technical Reference
Figure 1.1
|
S.no |
Description |
1 |
The Specified field will be cleared before typing |
|
2 |
Gets auto-filled, once the element is indicated in the webpage, using the SmartSpy |
|
3 |
Gets auto-filled, once the element is indicated in the webpage, using SmartSpy |
|
4 |
Gets auto-filled, once the element is indicated in the webpage, using SmartSpy |
|
5 |
Enter the input value that is required to be entered into a particular field |
|
6 |
SelectBy dropdown has multiple options such as: Value: Accepts the default assigned HTML values of a webpage Text: Accepts text input of the dropdown options Index: Index position of the data in a dropdown that needs to be extracted |
|
7 |
Gets auto-filled once the chosen Session is selected through the SmartSpy |
|
8 |
Specify the wait time for the activity to terminate (in milliseconds) |
|
9 |
Displays the action that the activity performs in the workflow |
|
10 |
Specify whether to continue executing the workflow even if the activity fails |
|
11 |
Define the condition that you prefer to validate. It supports only Boolean value |
ElementType has multiple options to choose from. Once the ElementType is changed, the ElementValue changes on its own, corresponding to the element type.
In case the session is closed by mistake, go back to the OpenBrowser activity and specify the Browser Type, Session Name & URL and change the Session name in the following activity.
Note: The Session Name should not be an existing name.
Illustration
Drag a SetText activity and connect under the OpenWebBrowser activity to translate the data into French language. (Refer figure 1.3)
- Double-click the activity and click on the Spy symbol to open the SmartSpy window on the screen
- Select the chosen Session in the SmartSpy window and click on the attach to highlight the webpage that you were already working on
- Spy/indicate the element and click Export to auto-fill the property details
- In InputString field, enter the variable name which is already declared for the GetText activity
- Add the chosen wait time in the WaitTime field (WaitTime value is in Milliseconds.)
Figure 1.2
Drag a SetText activity and connect under another SetText activity to select the French language.
- Double-click the activity and click on the Spy symbol to open the SmartSpy window on the screen
- Select the chosen Session in the SmartSpy window and click on the attach to highlight the webpage that you were already working on
- Spy/indicate the element that is required to be selected from the drop-down and click Export to auto-fill the property details
- In the text field, enter French
- Add the chosen wait time in the WaitTime field. (WaitTime value is in Milliseconds)
Figure 1.3
Example
The aforementioned scenario uses the OpenWebBrowser, DisconnectBrowser, SetText & GetText activities to perform the operation.
Figure 1.4