UiPath文本操作Get Full Text的介绍和使用
一、Get Full Text操作的介绍
使用Get Full Text(获取全文本 )屏幕抓取方法从指示的UI元素中提取字符串及其信息
二、Get Full Text在UiPath中的使用
1. 打开设计器,在设计库中新建一个Sequence,为序列命名及设置Sequence存放的路径,然后在Activities中搜索open browser,并将其拖至设计区,且设置打开网站,运行该流程“https://www.baidu.com/”
![](https://upload-images.jianshu.io/upload_images/14843435-14307471412f3929.png?imageMogr2/auto-orient/strip|imageView2/2/w/327/format/webp)
![](https://upload-images.jianshu.io/upload_images/14843435-9adfa5e387aefa74.png?imageMogr2/auto-orient/strip|imageView2/2/w/586/format/webp)
2. 在Activities中搜索设置文本(set text),并将其拖至设计区,设置输入text为“uipath”,继续在Activities中搜索click,设置点击元素为“百度一下”,运行该流程
![](https://upload-images.jianshu.io/upload_images/14843435-813aaca79c035048.png?imageMogr2/auto-orient/strip|imageView2/2/w/612/format/webp)
3. 在Activities中搜索 获取全文本(Get Full Text),并将其拖至设计区,在属性区域设置输出变量为text
#拾取区域
![](https://upload-images.jianshu.io/upload_images/14843435-e8efe31ca19c9145.png?imageMogr2/auto-orient/strip|imageView2/2/w/564/format/webp)
#设置变量text获取文本值
![](https://upload-images.jianshu.io/upload_images/14843435-2a4a9c5197692525.png?imageMogr2/auto-orient/strip|imageView2/2/w/558/format/webp)
![](https://upload-images.jianshu.io/upload_images/14843435-9621048e66890dd5.png?imageMogr2/auto-orient/strip|imageView2/2/w/504/format/webp)
![](https://upload-images.jianshu.io/upload_images/14843435-ba9d1393f4a63ecb.png?imageMogr2/auto-orient/strip|imageView2/2/w/510/format/webp)
4. 在Activities中搜索 log message,并将其拖至设计区,输入变量text,运行流程
![](https://upload-images.jianshu.io/upload_images/14843435-9db20dd1f84191c0.png?imageMogr2/auto-orient/strip|imageView2/2/w/508/format/webp)
#运行完成,你会看到日志窗口打印了从页面获取的文本信息
总结:以上流程就用到了获取全文本(Get Full Text)的操作
UiPath交流群:465630324