Description
Sets the 'value' attribute of the specified element in the browser opened via Studio Pro.
Parameters
The 'Attributes', 'CSS Selector' and 'XPath' sections enables you to identify the element to interact with. One of the above three methods needs to be chosen in order to set the element selector.
Browser tabs
This activity allows you to select the desired browser elements using the "Browser picker".
The tab selection parameter offers two options: specify the tab number manually or use the "Use tab number by order" checkbox.
Specifying the tab number manually allows you to designate the selected tab independently from the other tabs. That is, if tab "2" is selected in the option and other tabs are actually opened in the browser before it (i.e. the tab becomes, for example, the third one), the activity will be executed in this tab anyway.
The "Use tab number by order" checkbox denotes the tab strictly by the order of the actually opened tabs in the browser. That is, in a similar case (when the desired tab is actually the third), the Browser Picker will work exactly with the second tab of the browser.
On tab. This parameter allows you to specify the name of the tab that you want the bot to interact with. The name of the tab is assigned in the "Open URL" activity.
-
Set a value allows you to manually specify the name of the tab.
-
Calculate a value allows you to use a special formula or a special method to determine the name of the tab.
-
Save the previous step result takes the result of the previous workflow action as the name of the tab.
Use tab name in order
This checkbox allows you to specify a sequential number of a tab in the browser. It is worth using if a new tab opens not manually, but automatically after clicking on some element.
-
Set a value: enables you to directly write a string with the value of the
class
attribute of the html-code of the corresponding element, for example,search-input
. -
Save the previous step result: chooses the previous activity result as the class name.
-
Calculate a value: enables you to use available properties and methods to form the class.
-
Set a value: enables you to directly write a string with the value of the
id
attribute of the html-code of the corresponding element, for example,hiddenLanguageInput
. -
Save the previous step result: chooses the previous activity result as the id.
-
Calculate a value: enables you to use available properties and methods to form the id.
-
Set a value: enables you to directly write a string with the value of the
name
attribute of the html-code of the corresponding element, for example,search
. -
Save the previous step result: chooses the previous activity result as the name.
-
Calculate a value: enables you to use available properties and methods to form the name.
-
Set a value: enables you to directly write a string with the tag name of the html-code of the corresponding element, for example,
div
. -
Save the previous step result: chooses the previous activity result as the tag name.
-
Calculate a value: enables you to use available properties and methods to form the tag name.
-
Set a value: enables you to directly write a CSS-selector string of the specified element, for example,
input[name='btnK']
. -
Save the previous step result: chooses the previous activity result as the CSS-selector.
-
Calculate a value: enables you to use available properties and methods to form the CSS-selector.
-
Set a value: enables you to directly write a string which is the selector of the specified element in the XPath form, for example,
//*[@id="rso"]/div[1]/div/div[2]/div/div/div[1]/a
. -
Save the previous step result: chooses the previous activity result as the XPath expression.
-
Calculate a value: enables you to use available properties and methods to form the XPath expression.
Allows to specify the iframe tab number manually.
The browser tab number with the desired element. Up to five tabs inclusive can be used in an workflow.
Contains an annotation to the block. The input text will be displayed inside the block above the function name.
Usage Examples
This activity should be used in case you need to input some data into fields. For example, this may be a search field in an online search engine or fields to enter a login and a password.