Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Rational use of AutoRunner View Mode

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

In view mode, we can see the presentation of objects. At this time, we can add the objects acquired in capture mode to the script by dragging and dropping, which can effectively solve the problem that the script cannot be recorded in normal mode.

The point of creating this feature is to gradually make automation tools unscripted.

Let's give an example of how this view is used: when recording a login interface, assuming that some elements in the interface we want to record cannot be recorded in a normal way, then we capture the object by force. Hold down the ctrl and alt keys at the same time, and then drag the mouse over the tested object until a red box appears on the tested object, then the object will be grabbed down.

However, this approach will not generate a script, but will only generate an object in the object library. When we enter the view mode, we will find that all the objects we recorded (including those recorded and forcibly acquired) will be displayed here. At this time, we drag and drop the existing objects into the script, so we can generate the script:

The generated script can be executed normally!

Ar.window ("IEFrame_ Shanghai Zezhong Software Technology Co., Ltd. Customer Management system-Windows Internet Explorer"). ClickControl ("A _ customer Management", 59J 8, "left")

Ar.window ("IEFrame_ Shanghai Zezhong Software Technology Co., Ltd. Customer Management system-Windows Internet Explorer"). ClickControl ("A _ new customers", 21Jing 3, "left")

Ar.window ("IEFrame_ Shanghai Zezhong Software Technology Co., Ltd. Customer Management system-Windows Internet Explorer"). ClickControl ("INPUT_text_Client_Company", 54 left 8, "left")

Ar.window ("IEFrame_ Shanghai Zezhong Software Technology Co., Ltd.-Windows Internet Explorer"). SetValue ("INPUT_text_Client_Company", "fuhgid")

Ar.window ("IEFrame_ Shanghai Zezhong Software Technology Co., Ltd. Customer Management system-Windows Internet Explorer"). ClickControl ("INPUT_submit_ confirmation", 64jue 12, "left")

Let's execute the script:

With the success of the script, we are one step closer to our goal!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report