The AUT displays the 403 forbidden error
When you record or play back a Web UI test, the application under test (AUT) fails to open and displays the 403 forbidden error.
Cause
The Web UI testing fails because access to the web page is forbidden in the browser instance that is opened for test run.
Resolution
- Follow these steps to fix the 403 forbidden error while you record the test
in a browser:
- Select the Recorder Settings dialog to specify the argument to be used when Test UI opens the browser. option in the
- Enter the following argument in the text
box:
--disable-blink-features=AutomationControlled
- Follow these steps to fix the 403 forbidden error while you play back the
test in a browser:
- Select the Launch browser with arguments checkbox in the Run Configuration dialog to specify the argument to be used when Test UI opens the browser.
- Enter the following argument in the text
box:
--disable-blink-features=AutomationControlled