如何使用正则表达式搜索控件? [英] How to use a regular expression to search a control ?

查看:103
本文介绍了如何使用正则表达式搜索控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁能告诉我如何使用正则表达式查找控件?

Could anyone please let me know how to use a regular expression to find a control?

例如(仅举两个控件的示例: -

For example (taking an example of 2 controls only):-

控件1: UIMap.UICincomDetailPanelWebWindow.UIFrmMainFrame.UIDataMaintenanceDocument3.UIStatus963_Bar_TitleBTable。 UIItem1of1UpdateactionCell

Control 1 : UIMap.UICincomDetailPanelWebWindow.UIFrmMainFrame.UIDataMaintenanceDocument3.UIStatus963_Bar_TitleBTable.UIItem1of1UpdateactionCell

控制2:

UIMap.UICincomDetailPanelWebWindow.UIFrmMainFrame.UIDataMaintenanceDocument4。 UIStatus4349_Bar_TitleTable.UIItem0of1NewactionsisCell

UIMap.UICincomDetailPanelWebWindow.UIFrmMainFrame.UIDataMaintenanceDocument4.UIStatus4349_Bar_TitleTable.UIItem0of1NewactionsisCell



因此,可以看到控件名称的差异在'UIMap.UICincomDetailPanelWebWindow.UIFrmMainFrame'之后开始。


So, it is visible that difference in control's names starts after 'UIMap.UICincomDetailPanelWebWindow.UIFrmMainFrame' .

我有没有办法搜索使用正则表达式进行控制?

Is there a way through which I can search for either control using regular expression?

谢谢,

Divya

推荐答案

Divya,

Divya,

看起来像两个续rols是表格内的不同单元格,对象由记录器生成的代码创建。

Looks like the two controls are different cells inside a table and objects are created by recorder generated code.

更好的方法是创建单个对象以控制"单元格"并提供不同的搜索属性查找同一对象以执行进一步操作所需的控制权。

Better approach would be to create a single object for control 'cell' and provide varying search properties for same object to find required control for performing further action.


这篇关于如何使用正则表达式搜索控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆