I am doing automation testing on a local Self-signed website

I am doing automation testing on a local Self-signed website but got the SSL error on the real devices only. I tried the MITM mode and the network capability both but the issue persisted. The website loaded fine on emulators in automation and manual testing both. I tried to reproduce same on real device but it is not reproducible.

Hi Jacqueline

In the automation test to remove the SSL error, you can add the following code.

"goog:chromeOptions": {
            "args":[
                "--ignore-certificate-errors"
            ]
        },