Advanced configuration
Aqua enables you to customize or modify specific aspects of Web Inspector according to your needs.
Change a UI automation framework
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.
Select the appropriate UI automation framework from the UI Automation Framework menu.
Add custom data attributes
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 Ctrl+Alt+S to open settings, then select
.In the OK.
window, click the button, specify the attribute name, and clickApply changes.
As a result, specified custom data attributes will be prioritized when generating locators.
Hide Web Inspector code inlay hints
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.