当前位置:网站首页>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 .
边栏推荐
- Learning practice: comprehensive application of cycle and branch structure (I)
- [set theory] binary relationship (binary relationship notation | binary relationship from a to B | number of binary relationships | example of binary relationship)
- Kubernetes源码分析(一)
- FISCO bcos zero knowledge proof Fiat Shamir instance source code
- C language self-made Games: Sanzi (tic tac toe chess) intelligent chess supplement
- The least operation of leetcode simple problem makes the array increment
- 【PHP漏洞-弱类型】基础知识、php弱相等、报错绕过
- [BMZCTF-pwn] 18-RCTF-2017-Recho
- Small sample target detection network with attention RPN and multi relationship detector (provide source code, data and download)
- Wine travel Jianghu War: Ctrip is strong, meituan is strong, and Tiktok is fighting
猜你喜欢
Contents of welder (primary) examination and welder (primary) examination in 2022
Redis persistence principle
Bugku CTF daily question baby_ flag. txt
Two drawing interfaces - 1 Matlab style interface
金仓KFS数据双向同步场景部署
When using the benchmarksql tool to preheat data for kingbasees, execute: select sys_ Prewarm ('ndx_oorder_2 ') error
A outsourcing boy's mid-2022 summary
How to retrieve the password for opening word files
逆袭大学生的职业规划
Leetcode simple question: check whether the array is sorted and rotated
随机推荐
Leetcode simple question: check whether the string is an array prefix
2022-02-12 (338. Bit count)
Why should programmers learn microservice architecture if they want to enter a large factory?
Library management system based on SSM
[free completion] development of course guidance platform (source code +lunwen)
使用BENCHMARKSQL工具对KingbaseES执行测试时报错funcs sh file not found
FFMpeg example
使用BENCHMARKSQL工具对kingbaseES执行灌数据提示无法找到JDBC driver
Employee attendance management system based on SSM
Joint search set: the number of points in connected blocks (the number of points in a set)
移动端——uniapp开发记录(公共请求request封装)
消息队列(MQ)介绍
IPhone x forgot the boot password
Crazy scientist
2022 registration of G2 utility boiler stoker examination and G2 utility boiler stoker reexamination examination
Introduction to JVM principle
Preliminary cognition of C language pointer
STM32 reverse entry
Ffmpeg tanscoding transcoding
The simple problem of leetcode: dismantling bombs