Universal Web Adapter Properties, Methods, and Events
The Universal Web adapter has the following properties, methods, and events. You can access design properties from the Properties Grid. Access all other properties, methods, and events directly from Object Explorer or by using the Configure Type option.
Property |
Descriptions |
Return Type |
AcceptedDomains |
Use this property to determine which domains the Chrome Universal Web Adapter should recognize. You cannot interrogate any documents you exclude via this filter property, nor will those documents match at runtime. The property is a collection of filters, so you can add more than one. You can filter domains using verbs such as Contains, DoesNotContain, StartsWith, and EndsWith. You can also use full regex features. Note: The system only considers the domain portion of a document’s path when filtering. The system ignores the scheme (HTTP/HTTPS) and query string (?a=b). This property is useful for preventing an adapter from processing documents that you do not need to match or interrogate. Note: If you are running multiple Chrome Universal Web Adapters, use the AcceptedDomains property to set up a filter on all Chrome Universal Web Adapters. If you omit domain filtering, two adapters could interrogate, match, and automate the same webpage at the same time. |
String |
ApplyTimeoutToAllControls |
This property, along with the ControlTimeout property, lets you manage timeout intervals for all controls within the adapter. The default is False. |
Boolean |
BrowserType |
Set to Firefox if you are automating a web application using the Firefox browser. Set to Chrome if you are automating a web application using the Chrome browser. |
String |
BrowserStopMethod |
Use this property to determine what stops in the browser when the adapter stops. You can choose from these options:
|
String |
CloseTimeout |
This property is used when the Stop method is called on the adapter and is related to the StopMethod property ForceClose, ForceCloseThenTerminate, and SimulateCloseThenTerminate options. It specifies the amount of time, in milliseconds, Studio waits for the process to exit after the Stop method has been called. The TerminateTimout value applies when the CloseTimeout expires. After the CloseTimeout expires, Studio tries to terminate the process. The TerminateTimout value sets the amount of time Studio waits for the process to terminate. If this TerminateTimout value is exceeded, the process is most likely hung and Studio leaves the process running. The CloseTimeout and TerminateTimout properties apply to each process monitored by the adapter. |
Milliseconds |
Context |
Indicates the context in which the adapter is loaded. Contexts generally apply to solutions running in a Citrix environment. For more information, see Citrix - Project Items. |
String |
ControlTimeout |
Use this property to specify in milliseconds, the length of the timeout interval for all controls. The default is 30000 (30 seconds). Your entry for this property overrides the Timeout property for interrogated objects within the adapter. You enable the use of this timeout interval via the ApplyTimeoutToAllControls property. |
Milliseconds |
Credentials |
This property takes you to the Credential Collection Editor where you can enter credential information that is used by Assisted Sign-On. |
|
DesignTime |
Gets a value indicating if the control is a design time control. |
Boolean |
ExcludedProcesses |
Use this property to identify processes that are not required by your project. For more information, see Excluding Processes for Use in Projects. |
ProcessList |
Extender |
Use this property to specify an extender class implemented in a separate DLL for the project. Adapter extender classes implement IAdapterExtender and are able to contribute properties, methods and events to an adapter. |
String |
FriendlyName |
Enter the name you want the user to see in the Start My Day window. |
String |
FullName |
Gets the fully-qualified name of the adapter item. |
String |
HideApplicationAtRuntime
|
This property determines whether the browser window displays while the project and corresponding web application is running. Set this property to True to hide the application during project runtime. If you set this to True on the Properties Grid at design time, you can use the adapter's Show method in an automation to display the application while the project is running. You can also hide the application by calling the adapter's Hide method. Keep in mind...
|
Boolean |
HookChildProcesses |
Use this property to specify how Studio interacts with any processes spawned by the adapter application. Set this property to True to have Studio inject into spawned processes thereby enabling interrogation spawned application targets. For more information, see Using HookChildProcesses. |
Boolean |
IdleTimeout |
Sets the amount of time before the application becomes idle. |
Milliseconds |
IeRematchEvents |
Use this property to include a comma-separate list of events that notify a webpage to rematch. Note: Only use this property under the direction of Studio support. |
String |
InvokeRequired |
This method applies when the project and adapter are referenced in code by a non-Studio project and is not used in Studio stand-alone projects. For more information on referencing Studio projects see the Robotic Automation product page. |
Boolean |
InDesign |
Gets a value indicating if the control is in design mode. |
Boolean |
IsRunning |
Gets a value that indicates whether the application is running. |
Boolean |
IsStartStoppable |
This property controls how the Studio project reacts when the adapter application has been stopped and then restarted. (For example, the user closed the application and then restarted it.) Your options are: True – If the application is stopped and then restarted while the project is running, Studio will hook the application again so that automations or event monitoring can continue. False – If the application is stopped and then restarted while the project is running, Studio will not attempt to hook the application. The controls within the application will no longer be matched and therefore the project's automations/event monitoring which use the application's controls will fail. The adapter's Start method will not restart the application. You must stop and start the project for Studio to hook the application again. |
Boolean |
IsStopping |
Indicates whether the application is in the process of stopping. The IsStopping property returns a True value from the time the Stop method is called until the application is finished stopping. |
Boolean |
IsSuspended |
Gets a value that indicates whether the adapter application execution is suspended. |
Boolean |
JavaInvoketimeout |
Use this property when you are automating Java applications or applets. Enter the number of milliseconds you want the system to wait for the Java UI to respond before timing out. Note: if you set this option to zero (0), the system will wait forever. |
Milliseconds |
MonitoredEvents Note: This option is used with functionality which will be included in a future release. |
Use this property to specify the target types and corresponding events for which event notifications are generated. Browse this property to open the Configure Monitored Events dialog for selection of the target types and events associated with each selected target type for which notifications are generated. For more information, see the Events topic. |
SelectedEvents |
MonitorEventsMode Note: This option is used with functionality which will be included in a future release. |
Use this property to specify the types of application controls for which event notifications are generated. Your options are: None – No event notifications are generated for the adapter. All Controls – Event notifications are generated for any application control matching the selected target types and corresponding events. For this mode, you do not need to interrogate individual controls in the application. It is only necessary to interrogate the main application window to allow Studio to integrate the application, and complete the MonitoredEvents property to select the controls (target types) and corresponding events for which event notifications will be generated. For more information, see the Events topic. Interrogated Controls – Event notifications are generated only for controls which have been interrogated at design time. For this mode, you must interrogate the application's controls for which you want to generate event notifications and then use the MonitoredEvents property to select the controls (target types) and corresponding events for which event notifications will be generated. Note: The Interrogated Controls option, which only sends events for InterrogatedControls, is not applicable to web adapters. |
String |
Name |
Use this property to get or set the name assigned to the adapter. |
String |
ReadyForRobotWork |
Use this property to control whether an RPA robot receives new work from Robot Manager. If set to True, which is the default, the property indicates that the application is loaded, logged into, and ready for the robot to begin its work. The heartbeat messages from the robot communicate a Ready/NotReady status to Robot Manager. If an application fails when processing robot work assignments, change its ReadyForRobotWork value to False and use the ReasonRobotNotReady property to describe the failure. For example, in Robot Manager you would see a message similar to the following example if ReadyForRobotWork is set to False and ReasonRobotNotReady is set to “Cannot access applications.”: Robot not ready. Cannot access applications. Note: If at least one adapter in the loaded solution is set to not ready, then the robot is not ready and will not request new work assignments from Robot Manager. |
Boolean |
ReasonRobotNotReady |
Use this property to display a message that describes why the robot could not perform the work. |
String |
SendMessageTimeout |
Use this property to set the amount of time Studio waits for an acknowledgment message before sending the timeout message. |
Milliseconds |
StartMethod |
Use the StartMethod property to define how the Path application is started. Your options are:
Stopping the project stops all application instances with which Studio is interacting. There are three scenarios which can occur when you start the Chrome Universal Web Adapter:
If you set the adapter to Start, it will not stop until all Chrome processes are closed. |
|
StartMyDay |
Use this property to specify how this adapter participates in Start My Day functionality. For instance, choose Automatic if you want the adapter to start automatically or Manual if you want the user to start the adapter. The default is None, which indicates the adapter does not participate in Start My Day functionality. Note: When you choose Automatic or Manual, the StartOnProjectStart property is updated to reflect your choice. |
String |
StartMyDayControls |
Indicates which controls are used by the StartMyDay component to locate the application using the following methods:
The system lists eligible interrogated controls in the Collection dialog. Select all windows, web pages, or screens that are required to locate the application for the StartMyDay component. Note: If there is no matching StartMyDayControl available when an Organizing method is called, the application is not affected. |
String |
StartOnProjectStart |
Sets whether or not the adapter should start when the project runs. For more information, see StartMethod Property and StartOnProjectStart. |
Boolean |
StartPage |
The URL for the web application. |
String |
StartTimeout |
Sets the number of milliseconds the adapter waits for the application to start before Studio issues a timeout message. |
Milliseconds |
StopMethod |
Sets how Studio stops the application when the Stop method is called on the adapter. Your options are: None – Stops the adapter, but leaves the process running. ForceClose – For each process monitored by the adapter, Studio sends the message WM_CLOSE to each top-level window in the process and waits up to the CloseTimeout value for the process to exit. If the CloseTimeout is exceeded, Studio leaves the process running. SimulateClose – For each process monitored by the adapter, Studio sends the message WM_SYSCOMMAND (with parameter SC_CLOSE) to each top-level window in the process and waits up to the CloseTimeout value for the process to exit. This simulates the user clicking the 'X’ on each form’s title bar. If the CloseTimeout is exceeded, Studio leaves the process running. ForceCloseThenTerminate – Same as ForceClose, except Studio waits up to the CloseTimeout value for the process to exit. When the CloseTimeout period expires, Studio attempts to terminate the process and waits up to the TerminateTimeout value for the process to exit. If the process does not terminate within the TerminateTimeout it is likely hung, and Studio leaves the process running. SimulateCloseThenTerminate – Same as SimulateClose, except Studio waits up to the CloseTimeout value for the process to exit. When the CloseTimeout period expires, Studio attempts to terminate the process and waits up to the TerminateTimeout value for the process to exit. If the process does not terminate within the TerminateTimeout it is likely hung, and Studio leaves the process running. Terminate – This setting does not attempt to gracefully close the process. For each process monitored by the adapter, Studio attempts to terminate the process immediately and waits up to the TerminateTimeout value for the process to exit. If the process does not terminate within the TerminateTimeout it is likely hung, and Studio leaves the process running. |
String |
SuppressForegroundWindows |
Set to True to prevent an application from creating top most windows or bringing windows into the foreground when it is not the active application. The default is False. For example, when automating a web application in the background, the application may create top most windows that show over the top of foreground windows disrupting user activity. Setting this property to True will prevent the application from creating new topmost windows, converting existing windows to topmost, and bringing windows into the foreground. |
Boolean |
TerminateTimeout |
Use this property when the Stop method is called on the adapter. This property is related to the StopMethod property and the ForceCloseThenTerminate, SimulateCloseThenTerminate, and Terminate options. The TerminateTimout value applies when the CloseTimeout expires. After the CloseTimeout expires, Studio attempts to terminate the process. The TerminateTimout value sets the amount of time Studio waits for the process to terminate. If the TerminateTimout value is exceeded, the process is most likely hung and Studio leaves the process running. The TerminateTimeout property applies to each process monitored by the adapter. |
Milliseconds |
This |
A reference to the adapter object. |
String |
UniqueId |
Indicates the unique identifier of the adapter object. |
String |
WPFIdleTimeout |
Use this property when automating .NET Windows Presentation Foundation (WPF) applications. Here you can set the amount of time before the WPF UI becomes idle and is processed. Set this property to zero (0) to disable the idle timer. |
Milliseconds |
Methods |
Description |
Parameters |
Return Type |
AddBuildReference |
This method applies when the project and adapter are referenced in code by a non-Studio project and is not used in Studio stand-alone projects. For more information on referencing Studio projects, see the Robotic Automation product page. |
String reference |
Void |
AddFileReference |
Use this method to add a file to use as a reference for the Studio adapter. |
String reference |
Void |
BeginInvoke |
This method applies when the project and adapter are referenced in code by a non-Studio project and is not used in Studio stand-alone projects. For more information on referencing Studio projects, see the Robotic Automation product page. |
Delegate method, Object[] args |
IAsyncResult |
ContainsProcess |
Use this method to find out if the process ID you specify is being monitored by the adapter. |
int32 processID |
Boolean |
EndInvoke |
This method applies when the project and adapter are referenced in code by a non-Studio project and is not used in Studio stand-alone projects. For more information on referencing Studio projects, see the Robotic Automation product page. |
IAsyncResult result |
Object |
GetSelectedReparented |
This method applies when the project and adapter are referenced in code by a non-Studio project and is not used in Studio stand-alone projects. For more information on referencing Studio projects, see the Robotic Automation product page. |
None |
IntPtr |
Hide |
Hides all processes currently running in this adapter. See the UnMatchOnHidden property to understand how hiding an application changes control matching. This method is not applicable when the web application is selected to display in the TabbedReparentContainer control. If the web application is selected in the DesignComponentConfiguration property for the TabbedReparentContainer, you cannot hide the reparented application by calling the Hide method on the adapter. Note: We do not recommend using this method when automating applications because some applications and controls must be on an active desktop and visible. |
None |
Void |
Invoke |
This method applies when the project and adapter are referenced in code by a non-Studio project and is not used in Studio stand-alone projects. For more information on referencing Studio projects, see the Robotic Automation product page. |
Delegate method, Object[] args |
Object |
Navigate |
Use this method to have the currently focused tab go to the URL you specify. |
Sting URL |
Void |
Navigate |
Use this method to have the currently focused tab go to the URI you specify. |
URI URL |
Void |
Navigate |
Use this method to open a new tab and go to the URL you specify. |
String URL, Boolean newWindow |
Void |
Navigate |
Use this method to open a new tab and go to the URI you specify. |
URI URL, Boolean newWindow |
Void |
Navigate |
With this method, you have the following options.
|
String URL, NavigateOption option |
Void |
Navigate |
With this method, you have the following options.
|
URI URL, NavigateOption option |
Void |
RematchChildren |
Refreshes matching on all objects under the adapter. Set the detach property to True to unmatch all targets before attempting to rematch. |
Boolean detach |
Void |
ResetState |
Resets all component properties to their initial values. |
None |
Void |
Show |
Shows all processes currently running in this adapter. See the UnMatchOnHidden property to understand how hiding an application changes control matching. |
None |
Void |
Start |
Starts the application. |
None |
Void |
Stop |
Stops the associated process (and all child processes). Studio uses the adapter's StopMethod property setting to determine how the Stop method is executed. |
None |
Void |
Events |
Description |
AdapterLostFocus |
Occurs whenever focus changes from any of the application windows to another application window (running under a different adapter or any other application on the desktop). Once the event is triggered, a Duration event argument is calculated which tallies the amount of time (in milliseconds) that the application was in focus. Use the AdapterLostFocus event with Studio's Event's feature in Generic and Custom events projects and/or directly in project automations. You can use the AdapterLostFocus event with Java, Remedy Forms, Oracle Forms, and SAP GUI applications. Note: When monitoring focus of a web application, the AdapterLostFocus event is not raised when changing or creating browser tabs, such as when running in Internet Explorer 7, since changing tabs does not remove focus from the web adapter. However, if the Windows Live toolbar (prior to version 14) is installed, changing or creating tabs can cause the AdapterLostFocus event to be raised. For more information, see Adapter Events. |
ExceptionThrown |
Occurs when an exception is raised by the adapter application. |
OnRobotReadyStateChanged |
Occurs when the application state changes between ready and not ready. |
RobotNotReadyForWork |
Occurs when the ReadyForRobotWork property is set to False to indicate that the robot is not ready to perform work. |
Started |
Occurs when the application is started. |
Starting |
Occurs when the application is starting. |
Stopped |
Occurs when the application exits. |
Stopping |
Occurs before Stop is called on the application. |
Terminated |
Occurs when application is terminated. |
Privacy | Trademarks | Terms of Use | Feedback
Updated: 18 June 2020
© 2016 - 2020 Pegasystems Inc. Cambridge, MA All rights reserved.