Comments (9)
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.
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.
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.
Thank you @alexey-lin I will try this out and report back.
from testcafe-browser-provider-saucelabs.
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?
from testcafe-browser-provider-saucelabs.
@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.
@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.
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.
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)
- Cannot switch between landscape and portrait mode using saucelabs device emulator or simulator HOT 3
- Imported Role instances not working as intended. HOT 3
- npm package gives ENOENT error in Linux platform with testcafe/testcafe docker image HOT 1
- testcafe sauce-connect launcher parallel execution HOT 1
- Chrome Latest + Mac 10.15 is not available in browserlist HOT 4
- ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure. HOT 12
- Safari Issues - The environment you requested was unavailable HOT 13
- Sporadic saucelabs failures Error: [eval("")] Error response status: 17 JavaScriptError HOT 4
- Unable to read the saucelabs username and access token which are created in environment variables section manually HOT 2
- Unable to set timeZone on TestCafe SauceLabs tests. HOT 1
- Support Mac 11 (Big Sur) HOT 5
- TestCafe to SauceLabs Test Ratio and Configuration File Questions HOT 1
- Error: Failed to reach the Sauce Labs API. HOT 3
- Allow consumers of this package to pass in overrides for Sauce Connect Proxy HOT 2
- New release? HOT 1
- Error: Could not start Sauce Connect. Exit code 3221225595 signal: null HOT 2
- Plugin is not returning Saucelabs test build link of all concurrent sessions to Jenkins pipeline job HOT 1
- No way to use secure javascript APIs when running in saucelabs HOT 6
- Latest valid Sauce Labs browser, simulator and emulator versions are listed as not available HOT 12
- Tunnel never closes and test never stops running HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testcafe-browser-provider-saucelabs.