Exploring native control capabilities
Use the Native Control Explorer option to inspect the properties, methods, and events of a native control.
This option also lets you test native control members that use only simple types,
such as string, numeric, and boolean.
- In Pega Robot Studio, click the menu.
- Click Native Control Explorer.
Result: The Native Control Explorer displays, with the Properties panel at the top and Methods and Events at the bottom. Native Control Explorer
Properties
Use the Properties panel to drill down and explore the properties of the control at any level.
The right column shows the property value. Complex property values display as <Ref>, which indicates that the object is not a simple type that can be marshaled by value back to the adapter. You can often drill down into complex properties to see their property values.
When you select a property, the system displays that property’s native type in the bottom
of the Properties pane. Knowing the property’s native type can be important when you are
building UI Connectors or extensions.
You can modify simple properties on the Properties panel. For instance, .NET controls have a Visibleproperty. If you set that property to False, the control disappears from the application, which provides you with a way to test the control’s behavior when properties change.
Methods
In the Native Control Explorer, you can test methods for a control to see if there is a match between your automation and the application.
When you select the root control in the Properties panel, the system shows the methods for that control on Methods tab. If you select a property at any level below the root control, the methods for that property’s native types display on the tab.
To test methods that only have simple parameters, perform the following steps:
- Select a property.
- On the Methods tab, select a method.
- Click Test to execute the method against the live
control.
Result: A message tells you if the test succeeds or fails.
Events
In the Native Control Explorer, use the Events section to test events in your automation against the application.
When you select the root control in the Properties panel, the system shows the events for that control on Events tab. If you select a property at any level below the root control, the events for that property display on the tab.
To test an event, follow these steps:
- Select a property.
- On the Events tab, select an event.
- Interact with the control to trigger the firing of the event.
Result: When the event fires, it is added to the list on the right. Additionally, you can drill down to see the arguments for an event.
Previous topic Terms used Next topic Discovering members