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 in the New Test From Recording wizard to fix the 403 forbidden error while you record the test in a browser:
    1. Select the options for the Web UI test in the Recording Session screen.
    2. Click Next.

      The Select Location page is displayed.

    3. Specify the name and location for the test, and then click Next.

      The Select Client Application page is displayed.

    4. Select a browser, and then click Next.

      The Recorder Settings dialog is displayed.

    5. Select the Web UI recording > Launch browser with arguments option in the Advanced section to specify the argument to be used when Rational® Functional Tester opens the browser.
    6. Enter the following argument in the text box:
      --disable-blink-features=AutomationControlled
    7. Click Finish.
  2. Follow these steps in the Run Configuration dialog to fix the 403 forbidden error while you play back the test in a browser:
    1. Select the options as required for the test run in the Run Configuration page.
    2. Click Next.

      The Advanced playback options page is displayed.

    3. Select the Launch browser with arguments checkbox to specify the argument to be used when Rational® Functional Tester opens the browser.
    4. Enter the following argument in the text box:
      --disable-blink-features=AutomationControlled
    5. Click Finish.