Sunteți pe pagina 1din 15

Automation Anywhere Enterprise Object Cloning: Best Practices

Automation Anywhere Enterprise (AAE)


Best Practices for Object Cloning Command
Overview:
This guide documents the best practices for automating using AAE’s Object Cloning Command. These
guidelines have been put together after studying various customer scenarios and use-cases.

Steps To Identify The Object Cloning Technology.


1) Open AAE Task Editor, Add Object Cloning command.
2) Capture object and verify technology type on Object Cloning command window.

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

Guideline for Standard Technology.


1) For Windows Applications; select the following properties as Search Criteria:

Name, Class, Type, Path

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

2) For Web Applications, select the following properties as Search Criteria:

Name, Type, Path, HTML ID, HTML Name, HTML Tag

Remove HTML Href from Search Criteria list. Select Value ONLY if it remains static.

Note: Make sure path properties remains static otherwise Uncheck the path property (the icon) from
Search Criteria list.

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

Guideline for HTML Technology.


1) Make sure IE-11 Plugin is installed to capture object on Internet Explorer version 11. You can do
that from Tools -> Options -> Plugin Settings.
a. Verify plugin is installed and enabled in IE. To verify open Internet Explorer – Tools –
Manage Add Ons. Click on Automation.InternetExplorerAddIn.BrowserHelperObject and
check whether its enabled or not.

2) Set IE Settings as default settings if object cloning is not able to capture and play.

3) Set IE Zoom value to 100% if object highlighting is not proper at the time of capture.

4) Cross domain controls will not be captured using HTML technology at that time

5) Select Path, DomXPath, HTML ID, HTML Name, HTML Tag, HTML Type, HTML Title property for
HTML objects as Search Criteria.

6) Make sure Path properties remains static otherwise uncheck the Path property.

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

7) Use “Click” in place of “Left Click” if “Left Click” is not reliable. “Click” is more reliable in HTML
technology.
8) Use “Set Text” without delay if text box control not performing any backend processes like
javascript etc. If javascript execute based on keys enter in control then use “Set Text” with delay
with proper interval.

Note: User can switch the technology between Standard and HTML using following configuration
settings in (AA.Settings.xml located at Application Path)

For Standard Technology For HTML Technology


<advancedsettings> <advancedsettings>
<recordertechnology>0</recordertechnology> <recordertechnology>1</recordertechnology>
</advancedsettings> </advancedsettings>

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

Guideline for Java Accessibility Technology.


1) Make sure Java Plugin settings are configured for appropriate JRE. (Read Java Settings
configuration document). You can do this from Tools -> Options -> Java Settings
2) Make sure Java Application and Automation Anywhere both are running with similar access
privileges (Administrator or normal)
3) Select Name, Type, and Path property for java objects as Search Criteria.

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

Guideline for Flex Technology.


1) Make sure Flex plugin is installed. You can do this from Tools -> Options -> Plugin
Settings.
2) Please verify “%homedrive%%homepath%” is not configured on network drive. (Kindly
contact your IT support if this is the case)
3) Make sure Automation Anywhere client application is successfully launched before
opening the flex application.
4) Select the following properties for Flex Web/Desktop Application’s object:
Name, Value, Class, Type, Path as Search Criteria.
5) Uncheck Index property for flex object, make sure Name property remains static
otherwise do not select the Name property for Search Criteria.

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

Basic Guidelines for all technologies.


1) All properties are compatible with wildcard character (*) except Path and DOMXPath properties,
index.

2) For all the applications, first work with delay = 0 ms. If it works fine on one machine, it will work
fine elsewhere as well. This is because when the delay is set as 0, Set Text action accesses the
control properties and changes the text itself thereby accessing the control properly.

If the control is locked for editing by an external script, use the following delays:

a. For Desktop-based Applications: While performing Set text on desktop applications, use
minimum delay of 50 ms. It can vary based on application and OS responses.

b. For Web-based Applications: While performing Set text on web applications, use
minimum delay of 100 ms. It can vary based on application and OS responses.

3) When the delay is > 0 ms., the action does not change the property, but fires keystrokes.
Keystrokes are given by AA to the Operating System, which in turn passes it to the application and
application relays it to the control.

4) Thus, if the application is slow in responding, there are high chances of AA missing some
keystrokes and thus can relay an undesirable output as the control/application/OS is not ready
for accepting the keystrokes. Thus, delay might be needed so that the application accepts the key
strokes smoothly.

5) Object Cloning command searches and plays the object based on the selected search criteria
properties.

Troubleshooting:
If Internet Explorer encounters issues while scrolling or clicking objects OR if playing does not
work accurately…
• Open the task in task editor.
• Edit the action for these objects to Click instead of Left Click. Examples are link, or scroll.
• Save the task. Run the task.

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

Window title not found message. How to resolve?


• The error appears when window title keeps changing and actions need to be performed on
similar windows.
• Select multiple Object Cloning command in Task Editor. Then use right click and Change Window
Title using wild cards. E.g. *Microsoft Outlook.

For my Internet Explorer, multiple tab does not work. What should I do?
Go to registry entries of your machine.

Use command prompt regedit. Registry editor will open up.


Goto path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main
Right click and select New -> Dword value

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

Rename the value name with "TabProcGrowth"


Modify the Value data with 1.

Identify custom controls or objects to perform actions OR My control is recorded as


client and is not performing desired actions.
1) You will need to add an entry in the object mapper file for your custom control. Go to "Automation
Anywhere Files" folder as per as per your application path.
2) Open TA.ObjectMapper.xml file.
3) Insert appropriate entry in the relevant section.
4) Check the class from the property (except HTML Technology) of the object and define the type as per
the object type you want it to be captured for actions. Specify the value of the class in the class entry
below:
Example: <Object class="wbr" type="StaticText" />
5) For HTML Technology check the Tag from the property of the object and define the type as per the
object you want it to be captured for actions. Specify the value of the tag in the class entry below:
Example: <Object class="wbr" type="StaticText" />

Table below displays the main Search Criteria for different Objects with
respect to various technologies.

Textbox/Static Text Link/Image All other

Type Type Type


Common in All
Path Path Path
Name Name Name
.NET/WPF
Object ID Object ID Object ID
Parent Parent Parent
Silverlight
Name Name Name
Flex Class Class Class

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

Name Name Name


MSAA Name Name Name
HTML ID HTML HRef HTML ID
MSAA - HTML HTML Name HTML Name HTML Name
HTML Inner Text HTML Inner Text
HTML Value HTML Href HTMLValue
HTML Tag HTML InnerText HTMLTag
HTMLType HTML Value HTMLType
HTMLTitle HTMLTag HTMLTitle
HTMLName HTMLType HTMLName
HTMLID HTMLTitle HTMLID
HTML
HTMLTagIndex HTMLName HTMLTagIndex
HTMLID
HTMLTagIndex
HTML Frame Src HTML Frame Src HTML Frame Src
HTML Frame Name HTML Frame Name HTML Frame Name
HTML Frame Path HTML Frame Path HTML Frame Path
Name Name Name
Java
Type Type Type

Property Selection Tips and Tricks


Automation Anywhere Client now provides the ability to the user to easily understand and rectify the
“object not found error” which occurs when the Object Cloning command fails to locate the
captured Object.
This Show Tip appears during the task execution, when an object is not found. The Tips vary based on
the search criteria used for the captured object.

Tips with Wild Card when Search Criteria does not match

Click on Show Tip link on the Error Message.


The Error messages clearly indicates the object not found with recommended action.
The user can try modifying the Search Criteria with Wild Card. Use * for specific properties.
One can use * at beginning and end for any property.

One can also view the same tip details in the Task Log.

More Tips as per Technology when Object not found:

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

MSAA:
If object is not found and HTML Properties are checked in Search Criteria then provide
wildcard support in value or Uncheck HTML properties like HTML Href, HTML InnerText
If object is not found and HTML Properties are not checked in Search Criteria then check
other Unique properties like Name, Value, Parent, Index

Silverlight:
If object is not found then check other unique properties like Name, Value, Parent, Content

Flex:
If object is not found then check other unique properties like Name, Value, ObjectID,
Parent

UI Automation:
Java:
If object is not found then check other Unique properties like Name, Value, ObjectID,
Parent, Index

HTML:
If object is not found then check other Unique properties like HTML Tag, HTML TagIndex,
HTML Name, HTML ID.
If object is not found and HTML Properties are checked in Search Criteria then provide
wildcard support in value or Uncheck HTML properties like HTML Href, HTML InnerText

Tip to modify Search Criteria when objects do not have common/default properties

Click on Show Tip link on the Error Message.


The Error messages clearly indicates the object not found with recommended action.
Modify the search criteria to include unique object properties for the task to execute
successfully.
If object property dynamically changes during run time, try unchecking properties, and the
object will be found.

Enhanced Object Properties and Actions:


HTML Properties for websites and .NET applications.

Object Id and Object Name for supporting Silverlight and WPF applications.

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

Actions available are Right Click, Double Click and Left Click for all objects.

'Expand' action for Tree View and Combo Box controls.

'Set Date' action for Calendar, DatePicker, etc.

Combo-box has different actions like Get Total Items, Get Selected Index, Get Selected Text,
Select Item by Text, and Select Item by Index.
For controls related to HTML, Silverlight, Flex new action of Get Property is available. This
property is available as a drop down list and is editable.
Record items listed in a 'Combo Box' or 'List Box/View' which are then stored as 'Item
Collection' object property.
Note:
The values for the property 'Item Collection' gets populated with the ones available in the
recorded 'Combo Box' or 'List Box/View'. These values are visible in the form of a drop-down
list in the property details.

You cannot insert search criteria for this property type.

It is read only for 'If', 'Loop' and 'Smart Recorder' commands.

Editable when using Object Properties Checkpoint.

DOM/XPath - XPath (Relative and Absolute) recorded in browsers to minimize changes while
running tasks across browsers.
Note: It is possible to insert search criterion for a DOMXPath.
According to the World Wide Web Consortium, "XPath (XML Path Language) is a query
language for selecting nodes from an XML document. In addition, XPath may be used to
compute values from the content of an XML document." To know more about Xpath click here
.
Fix Flex Plugin Installation issue where your %homedrive%%homepath% mapped as
Network Drive.
1) Navigate Folder %homedrive%%homepath%
2) Find and Copy AutomatioAnywhere Folder from %homedrive%%homepath% to automation
installer path ("C:\Program Files (x86)\Automation Anywhere Enterprise 10.1\Client").
3) Find mm.cfg File(%homedrive%%homepath%) and open with notepad.

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

4) Edit PreloadSwf file path as a PreloadSwf="C:\Program Files (x86)\Automation Anywhere


Enterprise 10.1\Client\AutomatioAnywhere\AAMainloader.swf"
5) Save mm.cfg file.
6) Restart Automation Anywhere and Flex Application.

Object Cloning Command not able to capture flex objects:


Following Registry Details we are verifying before capturing /Playback flex objects.

KeyPath : HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayerPlugin\ isScriptDebugger


Value: 1 (HexDecimal)

KeyPath : HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayerPlugin\ isESR


Value: 0 (HexDecimal)

KeyPath : HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayerPlugin\ PlayerPath


Value: C:\Windows\system32\Macromed\Flash\NPSWF64_21_0_0_213.dll

Tips and Trick

1) Please make sure AAProxyserver.exe is running before execute/Capture any flex object using
object cloning command.
2) Always Start Automation Anywhere first then start your Flex Application.

Steps to identify flex web successfully connected with AAProxyServer or not.

1) Close AAProxyserver.exe from task manager.


2) Open AAProxyserver.exe with /u parameter.
3) Open Flex Application and check the connection status in AAProxyServer.exe UI.

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com
Automation Anywhere Enterprise Object Cloning: Best Practices

Sales hotline: PO Box 24073, url:


Toll Free (USA): 1.888.484.3535 San Jose, CA 95154-4073 automationanywhere.com
International Customers: Tel: 408.834.7676 Email:
1.408.834.7676 Fax: 1.408.834.7671 sales@automationanywhere.com

S-ar putea să vă placă și