Use the GetValue method for Universal App Connector
Use the GetValue method to retrieve a value from an element.
始める前に
Verify that you have open or active applications, for example, where you want to capture elements.
Role required: None
このタスクについて
For information on the various additional operations that are available for the application screens and elements, see Additional options for application screens and elements in Universal App Connector.
手順
-
Configure Universal App Connector.
To learn more about configuring the application screens and child elements, see Use the Universal App Connector.
-
Under Global Objects, double-click the UniversalApplication object.
The GetValue method appears in the Object Explorer pane.
- Drag the GetValue method to the Design surface.
- Double-click the GetValue method to configure the screens and elements in Universal App Connector.
-
On the Configure screens and elements window, select the Choose from an open window drop-down (
) and select an application screen.
For example, select the Badge Tool application.
注:- If no supported applications are open, the
App window not found messageis displayed. - To display newly opened application screens on the list, select the Click to refresh windows icon (
).
- If no supported applications are open, the
-
To add the selected application screen, for example, Badge Tool application, select Add screen.
After you do this step, you can capture the screen elements to perform actions.The application screen appears under the Screens and elements pane.
-
To capture the elements from the screen, right-click the added screen and select Capture Element.
The focus is set on the application screen that you had captured and the capture elements dialog appears.
-
After selecting the required element, select the Add Element icon (
) and select the mode as UIA, to capture the element.
注:You must add at least one element to continue.For example, select the textbox element tagged as edit by selecting the text box next to User Name field.
-
In the Configure screens and elements window, right-click the captured element, choose Select and select Done.
注:Select at least one element to perform the action. If none are selected, the action won't be executed. To proceed without selecting, select OK.
-
Right-click the GetValue method and select either Run From Here or Run This.
表 : 1. Parameters of the GetValue method Parameter name Parameter description Port Type Data Type Return Retrieves a value from the captured element. Data Out String The input value in the captured element is retrieved and displayed in the Data Out port of the GetValue method. In this scenario, ServiceNow is retrieved. -
Double-click the required application screen or element and the Object Explorer pane is displayed listing the related methods.
For example, if you select a Java application screen or element, the Java connector methods are displayed in Object Explorer.
- For more information on Java connector methods, see Java connector methods.
-
For more information on Google Chrome and Microsoft Edge connector methods, see Chromium connector methods.
- For more information on Windows connector methods, see Windows Connector methods.
-
If you have captured a web application screen and you want to execute a custom JavaScript on it, you can use the ExecuteJavascript method.