Setting UI Automation Options

Enable UI Automation support and specify which attributes and values to exclude from locators to allow Silk4J to better identify objects in applications that have implemented UI Automation provider interfaces, for example applications that are based on JavaFX or QT.
Note: All the following settings are optional. Change these settings if they will improve the quality of your test methods.
  1. Click Silk4J > Edit Options. The Script Options dialog box opens.
  2. Click the UI Automation tab.
  3. Set Enable Microsoft UI Automation Support to True to enable Microsoft UI Automation support instead of the normal Win32 control recognition.
    Note: If you are testing against a Java FX application, you do not have to enable the UI Automation support, as Silk4J enables this out-of-the-box for Java FX applications.
    Note: The UI Automation support overrides the standard technology-domain-specific support. When you are finished interacting with the controls that require UI Automation support, disable the UI Automation support again to resume working with standard controls.
  4. In the Locator attribute name exclude list grid, type the attribute names to ignore while recording. For example, if you want to ignore the attribute name automationid, because multiple controls in your AUT have an attribute with this name, add the automationid attribute name to the list. Separate attribute names with a comma.
  5. In the Locator attribute value exclude list grid, type the attribute values to ignore while recording. For example, the value JavaFX* is added to the list by default, because all JavaFX controls include an attribute value of the form JavaFX<number>. Separate attribute names with a comma.
  6. Click OK.