Description
Checks whether the specified element in the browser opened via Studio exists. The 'Yes' branch is executed if the element exists. Otherwise, the robot will follow the 'No' branch.
Parameters
The 'Attributes', 'CSS Selector', and 'XPath' sections enable 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.
-
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 function 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 function result as the XPath expression.
-
Calculate a value: enables you to use available properties and methods to form the XPath expression.
Allows specifying the iframe tab number manually.
In iframe
This parameter allows you to select a specific iframe on a given page where the action is to be executed.
The browser tab number with the desired element. Overall up to five tabs inclusive can be used in a workflow.
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.
Contains an annotation of the activity. The input text will be displayed above the activity name.