Code Monkey home page Code Monkey logo

Comments (9)

AndreyBelym avatar AndreyBelym commented on August 29, 2024

Thank you for your inquiry. testcafe-browser-provider-saucelabs doesn't support passing Chrome command-line options to cloud browsers yet. But since it uses Selenium to control browsers, likely you don't need the --autoplay-policy=no-user-gesture-required flag, try to remove it and run your tests with saucelabs:chrome.

from testcafe-browser-provider-saucelabs.

gmarsh-cl avatar gmarsh-cl commented on August 29, 2024

Hi, when testing against HTTPS sites we always need to suppress the browsers insecure certificate warning (in Chrome using "--allow-insecure-localhost"). I am lead to believe that this can only be done on the command line when you start the browser. Hence the limitation that @bassihani raises might be a significant issue for HTTPS site testing.

from testcafe-browser-provider-saucelabs.

alexey-lin avatar alexey-lin commented on August 29, 2024

Hi @gmarsh-cl,

Thank you for sharing your experience. Did you try to use the SAUCE_CAPABILITIES_OVERRIDES_PATH environment variable? You can create your custom SauceLab configuration file (like the one below) and define a path to it via SAUCE_CAPABILITIES_OVERRIDES_PATH.

"chromeOptions": {
  "args": [
    "allow-insecure-localhost",

    "start-maximized",
    "disable-webgl",
    "blacklist-webgl",
    "blacklist-accelerated-compositing",
    "disable-accelerated-2d-canvas",
    "disable-accelerated-compositing",
    "disable-accelerated-layers",
    "disable-accelerated-plugins",
    "disable-accelerated-video",
    "disable-accelerated-video-decode",
    "disable-gpu",
    "disable-infobars",
    "test-type"
  ]
}

To be honest, I didn't try it myself, but it should work according to the docs.

from testcafe-browser-provider-saucelabs.

gmarsh-cl avatar gmarsh-cl commented on August 29, 2024

Thank you @alexey-lin I will try this out and report back.

from testcafe-browser-provider-saucelabs.

gmarsh-cl avatar gmarsh-cl commented on August 29, 2024

Hi @alexey-lin after your suggestion I have managed to get SauceLabs to accept the args which is great. Strangely though, as you can see from my screenshot, SauceLabs seems to have ignored it. Or perhaps this is an issue with Chrome 79?
sauce labs config with parms

from testcafe-browser-provider-saucelabs.

Dmitry-Ostashev avatar Dmitry-Ostashev commented on August 29, 2024

@gmarsh-cl
As you can see in the screenshot, TestCafe does not use the hostname localhost in your case. Try to use the ignore-certificate-errors Chrome flag instead.

from testcafe-browser-provider-saucelabs.

gmarsh-cl avatar gmarsh-cl commented on August 29, 2024

@Dmitry-Ostashev excellent, thank you so much. That resolved the problem. For anyone else out there suffering with the same issue, on Sauce Labs you can pass in the following for Firefox and IE to get around the untrusted certificate issues:

(FF)
{
"acceptInsecureCerts": true,
"moz:firefoxOptions": {
"prefs": {
"network.websocket.allowInsecureFromHTTPS": true
}
}
}

and (IE)

{
"acceptInsecureCerts": true
}

from testcafe-browser-provider-saucelabs.

github-actions avatar github-actions commented on August 29, 2024

This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.

from testcafe-browser-provider-saucelabs.

github-actions avatar github-actions commented on August 29, 2024

We're closing this issue after a prolonged period of inactivity. If it still affects you, please add a comment to this issue with up-to-date information. Thank you.

from testcafe-browser-provider-saucelabs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.