-
Notifications
You must be signed in to change notification settings - Fork 2
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
Tutorial in Readme doesn't work #6
Comments
Are you using At the moment, you are using Browserstack's WebDriver API instead of their REST JS Testing API. The difference is that the JS Testing API offers a few more device testing features than their WebDriver API does. If you want to use WD, you don't need this plugin at all. You can just use Browserstack's WD url as the URL for your browsers. |
I followed the tutorial as it is and installed the forked version of the web-component-tester-custom-runner as described in the README file. Do I need to do something else? The plugin also using the url creates the tunnel, which is also helpful.The only thing now missing is the timeout.. |
You need to modify your wct.conf.js and remove the Try installing the custom runner and plugin locally in your project instead of globally.
Then create an npm script to run the test package.json {
"name": "my-element",
"scripts": {
"test": "wct --plugin browserstack"
}
} This will ensure when you run Ensure your config file looks similar to this wct.conf.js module.exports = {
plugins: {
local: { disabled: true }, // try adding this if you're struggling with the local browsers running when you don't want them to
sauce: { disabled: true },
browserstack: {
username: 'myusername',
accessKey: 'myaccesskey',
browsers: [{
browser: 'chrome',
browser_version: 'latest',
os: 'windows',
os_version: '10'
}]
}
}
}; |
It still tries to connect to localhost:4444. Here is the configuration in my project: package.json
wct.conf.js
Here is the log from the console:
|
Ok, I see the problem more clearly now. It's not that it's trying to launch the wct-local plugin, it's that it can't connect to your browserstack local tunnel. Browserstack will host the code on your localhost, which browserstack will connect to through the tunnel. The line My next logical place to start would be your computer and network firewalls. You'll want to check and see if anything is blocking traffic to port 4444. Are you behind a proxy? You may need to add additional proxy configuration to the tunnel. |
I tried out the provided tutorial, but it tries to connect to localhost:4444. It doesn't use the selenium server hub. As workaround I used url like this:
The only problem is, that the tests stop after a timeout. If the timeout is too small, then the tests are stopped due to the timeout. If the timeout is bigger, then the tests finish and I get an browser timeout from browserstack.
The text was updated successfully, but these errors were encountered: