Connect HomeMarketplaceComponentsSelector Repository Reader

Selector Repository Reader

Snippet

Snippet

Updated: October 21st, 2020

Published: November 25th, 2019

Downloads: 47

Language compatibility: Visual Basic

Community Support

Selector Repository Reader

Snippet

Summary: 

Increase the reusability of selectors across multiple automation projects

Selectors are used by UiPath Studio and UiPath Robot to locate elements of the user interface (UI). They are represented as XML strings that contain information about UI controls (e.g., wnd and webctrl) and theirs attributes (e.g., aaname and tag). Although selectors are usually hardcoded into the activities that make use of them, in certain situations it can be necessary to choose a selector during runtime. Examples of such cases include:
  • Projects that support multiple languages and that have certain selectors that depend on the system’s language settings.
  • Projects that go through execution environments having different selectors. This situation can happen when the development sandbox for an application has selectors that are different than the ones used for testing or for production.
To enable a more flexible management of selectors, one alternative is to store them in external files, which can be called selector repositories. These repositories can be, for example, Excel workbooks with metadata about selectors, such as language and environment.
The Selector Repository Reader can retrieve selectors from selector repositories, filter them according to the system’s characteristics (e.g., language and environment) and return only selectors that match these characteristics.

Details

Benefits

The advantages of using the Selector Repository Reader include:
Easier organization and management of selectors of an automation project.
Fast and efficient choice of selectors that match the system’s characteristics.
Increased reusability of workflows across different projects.

Compatibility

Tested with UiPath Studio 2018.2 and UiPath Studio 2019.10.

Dependencies

None.

Resources

- SelectorRepositoryReaderManual.pdf

Licensing

By clicking download you agree to the following license.