当前位置:网站首页>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’> 命令则会返回所识别 标签的所有数值。
边栏推荐
- [Thesis Writing] how to write the overall design of JSP tourism network
- PostgreSQL database high availability Patroni source code learning - etcd class
- What are the Bluetooth headsets with good sound quality in 2022? Inventory of four high-quality Bluetooth headsets
- C Primer Plus Chapter 10, question 14 3 × 5 array
- 7. Integrated learning
- [PCL self study: filtering] introduction and use of various filters in PCL (continuously updated)
- Basic use of continuous integration server Jenkins
- 2022 registration examination for safety production management personnel of hazardous chemical production units and examination skills for safety production management personnel of hazardous chemical
- How do you use lodash linking function- How do you chain functions using lodash?
- Classes in TS
猜你喜欢
Data Lake three swordsmen -- comparative analysis of delta, Hudi and iceberg
2022 t elevator repair simulation examination question bank and t elevator repair simulation examination question bank
GFS distributed file system (it's nice to meet it alone)
Prefix and (continuously updated)
I've been in software testing for 8 years and worked as a test leader for 3 years. I can also be a programmer if I'm not a professional
[pat (basic level) practice] - [simple simulation] 1063 calculate the spectral radius
Arthas watch grabs a field / attribute of the input parameter
How to retrieve the password for opening word files
Bugku CTF daily question baby_ flag. txt
Use the benchmarksql tool to perform a data prompt on kingbases. The jdbc driver cannot be found
随机推荐
220214c language learning diary
Joint search set: the number of points in connected blocks (the number of points in a set)
How to use kotlin to improve productivity: kotlin tips
跨境电商多商户系统怎么选
金仓数据库KingbaseES 插件kdb_database_link
Drf--- quick start 01
AWS VPC
vulnhub HA: Natraj
Youdao cloud notes
JS multidimensional array to one-dimensional array
IPhone x forgot the boot password
会员积分商城系统的功能介绍
[pat (basic level) practice] - [simple simulation] 1063 calculate the spectral radius
Dive Into Deep Learning——2.1数据操作&&练习
Ffmpeg mix
Leetcode simple problem delete an element to strictly increment the array
Which Bluetooth headset is good about 400? Four Bluetooth headsets with strong noise reduction are recommended
Smart contract security audit company selection analysis and audit report resources download - domestic article
使用BENCHMARKSQL工具对KingbaseES执行测试时报错funcs sh file not found
Integration of Android high-frequency interview questions (including reference answers)