-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safari on ios simulator is not loading internal secure sites without warning #9
Comments
Hi, can you try to manually open the simulator by running command |
i'm using |
Hi, as mentioned in this StackExchange answer, can you try to execute Before navigating to the website, write this step: If the above doesn't work, try this one also: |
Also, can you share your configuration where you are setting |
I have tried both scripts and both failed with the following error I executed the script before navigating to the url in the beforeEach() Also here is my configuration:
|
Okay, can you try to put desiredCapabilities: {
// acceptSsl: false,
acceptInsecureCerts: true,
browserName: 'safari',
platformName: 'iOS',
// ...other capabilities |
I have tried placing it outside as well but it is not working either. nightwatch tries to load it and then says it is loaded and then proceeds with the execution of the tests but the site is never really loaded ever and every test fails. If i manually spin up the emulator and go to the page i get the warning but I am able to manually proceed to the page. In the video below you'll see the output of the tests saying it's "loading" and then says "loaded" even though the page never loaded. i navigate to my url in my beforeEach. This long load time only happens because safari on t he ios device is sayign the site is secure so it i attempting to load it. once the site is manually trusted it works as expected error-https.mov |
macbook m1 pro
node v16.13.2
nightwatch v2.6.10
safari
iphone8
Trying to run our tests against an internal secure (https) site on safari and I keep getting the warning that the connection is not private even though the site is secure and its on our network. Works as expected when running against desktop browsers but not IOS safari emulator. I can manually bypass it by clicking show details and continue to site but this flow interrupts my automation.
I have tried
The text was updated successfully, but these errors were encountered: