Advanced configuration
Aqua enables you to customize or modify specific aspects of Web Inspector according to your needs.
If the system fails to recognize the UI automation framework used in your project, it selects the most suitable one. In case the framework is selected incorrectly, you can manually change it. To do this:
Open the Web Inspector tool window.
Click the name of the current UI automation framework on the Status bar.
note
Framework selection becomes available only after you add an element to your code.
Select the appropriate UI automation framework from the UI Automation Framework menu.
If the webpage you are testing contains elements with custom data-attributes, you can instruct Aqua to prioritize such attributes over non-custom ones when generating locators. To do this:
Press CtrlAlt0S to open settings, then select Tools | Web Inspector.
In the Custom Data Attributes window, click the button, specify the attribute name, and click OK.
note
Data attributes are prioritized according to their position in the list – from higher to lower.
Apply changes.
As a result, specified custom data attributes will be prioritized when generating locators.
In Aqua, there is a special marker that appears in the editor next to the locator.
You can use this marker to verify that the corresponding locator exists on the webpage and points to a specific element on it.
However, if you do not want to display these inlay hints, you can hide them. To do this:
Click the button in the Locators Evaluator section.
Disable the Show validation hints for XPath and CSS locators in a code parameter.
Apply changes.
Thanks for your feedback!