Search for Elements

Object for searching elements present on websites

Settings

This object depends on the "Open Browser" object to work

Field

Descriptive

Title

Object title

Select the Main Object

Option to select a browser opened with the "Open Browser" object

Declare Variable

Allows you to declare a variable to reference the value(text) of the element.

Variable

Variable name that will reference the element text

Xpath

Opção de busca por xpath do elemento (como obter xpath do elemento) - Option to search by xpath of the element (how to get xpath of the element)

Name

Searches element by tag name

Id

Searches element by tag ID

Class Name

Searches element by class

CSS Selector

Searches element by the CSS Selector

Contains in Path

Checks if an element on the page contains the path (if so, gets the element)

Object Identifier Name

Singular object name for the element search (variable)

Search just one

Searches just one element (better performance)

Search a list

Searches a list of elements

Minimum Quantity

Minimum number of elements to be retrieved (for list searches only)

Timeout

Maximum waiting time of the object to be found

Stop execution if something goes wrong

Throws error and stops the robot execution

Click

Click action on the found element (only for 1 element searches)

Type

Types on the found element (only for 1 element searches)

Password Field

Action to not display on screen the password entered in the text field

Text

Text to be displayed on screen

Teclas de atalho - Shortcut keys

Activates shortcut keys on the element (only for 1 element search)

Example

To do an element search on a website, you must follow the next steps:

1 - Select the objet "Open Browser" on the "Internet" menu and drag it to your working area:

  • First, define a singular object name in the "Object Identifier Name" field , select a browser and enter the website to be accessed in the "Web Page Address" field

As shown above we used the Google website for this tutorial:

2 - On this site, it is necessary to fill in some search information. To do this, we will use the "Search Elements" object, which is available in the "Internet" menu.

  • You should enter the main object, in this case, the browser object. Next we should enter the xpath in the search field and set "SEARCH A LIST" and then define the action to be applied. (See how to get the xpath of elements manually, by clicking HERE)

2 - The working area will look like this:

Last updated

Was this helpful?