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

  1. Follow these steps to fix the 403 forbidden error while you record the test in a browser:
    1. Select the Web UI recording > Launch browser with arguments option in the Recorder Settings dialog to specify the argument to be used when HCL OneTest UI opens the browser.
    2. Enter the following argument in the text box:
      --disable-blink-features=AutomationControlled
  2. Follow these steps to fix the 403 forbidden error while you play back the test in a browser:
    1. Select the Launch browser with arguments checkbox in the Run Configuration dialog to specify the argument to be used when HCL OneTest UI opens the browser.
    2. Enter the following argument in the text box:
      --disable-blink-features=AutomationControlled