当前位置:网站首页>UiPath实战(08) - 选取器(Selector)
UiPath实战(08) - 选取器(Selector)
2022-07-03 04:32:00 【jie_ming514】
Uipath 中的选取器(Selector)
带通配符的选择器
利用通配符,您能够替换字符串中的零个或多个字符。在处理选取器中动态变化的属性时,通配符非常有用,常用通配符有如下两种。
- 星号 (*) – 替换零个或更多个字符
- 问号 (?) – 替换单个字符
使用如下:

带变量的选择器
有时候选择器的部分内容需要通过变量动态的决定时,如何在选择器中添加的变量呢。
可以通过 { {变量名}} 的形式插入变量。

选择器中使用正则表达式
假设我们要针对计算器应用程序创建自动化流程。但为达到本示例目的, 标签的值需在 0 到 2 之间进行调整。如不使用正则表达式搜索,则需构建两个选取器,每个选取器各对应于 标签的每个值,如下所示
name 标签中包含数字 0
<wnd app='applicationframehost.exe' appid='Microsoft.WindowsCalculator_8wekyb3d8bbwe!App' title='Calculator' />
<uia cls='LandmarkTarget' />
<uia automationid='CalculatorResults' name='Display is 0' role='text' />
name 标签中包含数字 2
< wnd app='applicationframehost.exe' appid='Microsoft.WindowsCalculator_8wekyb3d8bbwe!App' title='Calculator' />
<uia cls='LandmarkTarget' />
<uia automationid='CalculatorResults' name='Display is 2' role='text' />
<wnd app='applicationframehost.exe' appid='Microsoft.WindowsCalculator_8wekyb3d8bbwe!App' title='Calculator' />
<uia cls='LandmarkTarget' />
<uia automationid='CalculatorResults' name='Display is \d' role='text' matching:name='regex' />
matching:name=‘regex’ 属性指示选取器使用正则表达式识别 标签,而 <name=‘Display is \d’> 命令则会返回所识别 标签的所有数值。
边栏推荐
- [set theory] set operation (Union | intersection | disjoint | relative complement | symmetric difference | absolute complement | generalized union | generalized intersection | set operation priority)
- Which Bluetooth headset is cost-effective? Four Bluetooth headsets with high cost performance are recommended
- 金仓数据库KingbaseES 插件kdb_exists_expand
- 2022 a special equipment related management (elevator) analysis and a special equipment related management (elevator) simulation test
- Human resource management system based on JSP
- Use the benchmarksql tool to perform a data prompt on kingbases. The jdbc driver cannot be found
- 7. Integrated learning
- Function introduction of member points mall system
- Leetcode simple question: the key with the longest key duration
- C Primer Plus Chapter 10, question 14 3 × 5 array
猜你喜欢

Two drawing interfaces - 1 Matlab style interface

When using the benchmarksql tool to preheat data for kingbasees, execute: select sys_ Prewarm ('ndx_oorder_2 ') error

2022 Shandong Province safety officer C certificate examination content and Shandong Province safety officer C certificate examination questions and analysis

When using the benchmarksql tool to test the concurrency of kingbasees, there are sub threads that are not closed in time after the main process is killed successfully
![[nlp] - brief introduction to the latest work of spark neural network](/img/65/35ae0137f4030bdb2b0ab9acd85e16.png)
[nlp] - brief introduction to the latest work of spark neural network

How to choose cross-border e-commerce multi merchant system

The simple problem of leetcode: dismantling bombs

Busycal latest Chinese version

2022 chemical automation control instrument examination summary and chemical automation control instrument certificate examination

arthas watch 抓取入参的某个字段/属性
随机推荐
7. Integrated learning
Kingbasees plug-in KDB of Jincang database_ database_ link
JS multidimensional array to one-dimensional array
PostgreSQL database high availability Patroni source code learning - etcd class
arthas watch 抓取入参的某个字段/属性
AWS VPC
[literature reading] sparse in deep learning: practicing and growth for effective information and training in NN
重绘和回流
540. Single element in ordered array
Hj35 serpentine matrix
C language series - Section 3 - functions
使用BENCHMARKSQL工具对kingbasees并发测试时kill掉主进程成功后存在子线程未及时关闭
Small program animation realizes the running lantern and animation object
Contents of welder (primary) examination and welder (primary) examination in 2022
[Thesis Writing] how to write the overall design of JSP tourism network
Youdao cloud notes
消息队列(MQ)介绍
跨境电商多商户系统怎么选
Summary of training competition (Lao Li's collection of questions)
Joint set search: merge intervals and ask whether two numbers are in the same set