当前位置:网站首页>Uipath practice (08) - selector
Uipath practice (08) - selector
2022-07-03 04:38:00 【jie_ ming514】
Uipath Picker in (Selector)
Selector with wildcard
Using wildcards , You can replace zero or more characters in a string . When dealing with dynamically changing properties in the picker , Wildcards are very useful , There are two common wildcards .
- asterisk (*) – Replace zero or more characters
- question mark (?) – Replace single characters
Use as follows :

Selector with variable
Sometimes part of the selector needs to be dynamically determined through variables , How to add variables in the selector .
Can pass { { Variable name }} Insert variables in the form of .

Regular expressions are used in selectors
Suppose we want to create an automated process for a calculator application . But for the purpose of this example , The value of the tag must be 0 To 2 Adjust between . If you do not use regular expression search , You need to build two selectors , Each picker corresponds to Each value of the tag , As shown below
name The label contains numbers 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 The label contains numbers 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’ Property instructs the picker to recognize using regular expressions label , and <name=‘Display is \d’> The command will return the recognized All values of the label .
边栏推荐
- Web security - CSRF (token)
- 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
- [software testing-6] & Test Management
- [fxcg] inflation differences will still lead to the differentiation of monetary policies in various countries
- Mount NFS in kubesphere
- Reptile exercise 02
- P35-P41 fourth_ context
- 金仓数据库KingbaseES 插件kdb_database_link
- Web - Information Collection
- MC Layer Target
猜你喜欢

X-ray normal based contour rendering

Youdao cloud notes

Games101 Lesson 9 shading 3 Notes

vulnhub HA: Natraj

Know that Chuangyu cloud monitoring - scanv Max update: Ecology OA unauthorized server request forgery and other two vulnerabilities can be detected

Truncated sentences of leetcode simple questions

MC Layer Target

Smart contract security audit company selection analysis and audit report resources download - domestic article

7. Integrated learning

The least operation of leetcode simple problem makes the array increment
随机推荐
How to retrieve the password for opening word files
带有注意力RPN和多关系检测器的小样本目标检测网络(提供源码和数据及下载)...
Function introduction of member points mall system
arthas watch 抓取入参的某个字段/属性
金仓数据库KingbaseES 插件kdb_database_link
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
Two drawing interfaces - 1 Matlab style interface
[set theory] binary relation (example of binary relation operation | example of inverse operation | example of composite operation | example of limiting operation | example of image operation)
使用BENCHMARKSQL工具对KingbaseES执行测试时报错funcs sh file not found
Golang -- realize file transfer
2022 P cylinder filling test content and P cylinder filling simulation test questions
JVM原理简介
Use the benchmarksql tool to perform a data prompt on kingbases. The jdbc driver cannot be found
Joint set search: merge intervals and ask whether two numbers are in the same set
Symbol of array element product of leetcode simple problem
FFMpeg example
Smart contract security audit company selection analysis and audit report resources download - domestic article
[USACO 2009 Dec S]Music Notes
GFS distributed file system (it's nice to meet it alone)
C Primer Plus Chapter 10, question 14 3 × 5 array