Comments (10)
Tested with 5.8.0, 5.8.1, and 6.0.4
from mochify.js.
Correction: it has worked with Firefox 64, but stopped working between 2018-12-22 and 2018-12-29, on both High Sierra and Windows 10. It is strange that the 'same' issue also happens with Safari 12 / Mojave.
from mochify.js.
Thank you for reporting. It is strange that it works in some browsers and doesn’t work in others since the client side code shouldn‘t have changed.
You’re running a lot of test cases there. Can I ask you to retry with a single, simple test case? I had issues before that only occurred when a lot of tests were executed or the tests were blocking for a long time.
from mochify.js.
Hi @mantoni ! You're quick!
I'm just trying to get a grip on this, so reporting on the fly:
The logs say that both the last working and the first failing run use
- browserstack.geckodriver: 0.21.0,
- browserstack.selenium.jar.version: 3.11.0
So, there was no switch there either.
In the Selenium logs, there is a difference in the first line. The logs for Windows / Firefox 64 of Travis/651 say
INFO [ActiveSessionFactory.apply] - Capabilities are: Capabilities {64bit: true, acceptSslCert: false, acceptSslCerts: false, browser: firefox, browserName: firefox, browser_version: 64.0, browserstack.appiumLogs: false, browserstack.console: ALL, browserstack.debug: false, browserstack.geckodriver: 0.21.0, browserstack.ie.noFlash: false, browserstack.key: <>, browserstack.selenium.jar.version: 3.11.0, browserstack.seleniumLogs: true, browserstack.user: <>, browserstack.video: true, browserstack.video.disableWaterMark: false, firefox_binary: c:\Program Files (x86)\fire..., firefox_profile: UEsDBBQAAAAIADNwWUmK7I+M9AM..., javascriptEnabled: true, moz:firefoxOptions: {args: [-start-debugger-server, 9222], prefs: {devtools.chrome.enabled: true, devtools.debugger.prompt-connection: false, devtools.debugger.remote-enabled: true}}, orig_os: win10, os: Windows, os_version: 10, proxy_type: node, version: 64.0}
Note:
browser: firefox,
browserName: firefox,
browser_version: 64.0,
…
browserstack.console: ALL,
…
browserstack.accessKey: <>,
browserstack.user: <>,
…
os_version: 10
The logs Travis/654 say
INFO [ActiveSessionFactory.apply] - Capabilities are: Capabilities {64bit: true, acceptSslCert: false, acceptSslCerts: false, browser: firefox, browserName: firefox, browser_name: Firefox, browser_version: 64.0, browserstack.accessKey: <>, browserstack.appiumLogs: false, browserstack.console: ALL, browserstack.consoleLogs: verbose, browserstack.debug: false, browserstack.geckodriver: 0.21.0, browserstack.ie.noFlash: false, browserstack.key: <>, browserstack.selenium.jar.version: 3.11.0, browserstack.seleniumLogs: true, browserstack.user: <>, browserstack.userName: <>, browserstack.video: true, browserstack.video.disableWaterMark: false, buildName: travis/00654, firefox_binary: c:\Program Files (x86)\fire..., firefox_profile: UEsDBBQAAAAIADNwWUmK7I+M9AM..., javascriptEnabled: true, moz:firefoxOptions: {args: [-start-debugger-server, 9222], prefs: {devtools.chrome.enabled: true, devtools.debugger.prompt-connection: false, devtools.debugger.remote-enabled: true}}, orig_os: win10, os: Windows, osVersion: 10, os_version: 10, projectName: Toryt contracts, proxy_type: node, version: 64.0}
Note:
browser: firefox,
browserName: firefox,
browser_name: Firefox,
browser_version: 64.0,
…
browserstack.console: ALL,
browserstack.consoleLogs: verbose,
…
browserstack.accessKey: <>,
browserstack.key: <>,
browserstack.user: <>,
browserstack.userName: <>,
…
buildName: travis/00654,
…
osVersion: 10,
os_version: 10,
projectName: Toryt contracts,
browser_name
, browserstack.consoleLogs
, browserstack.key
, browserstack.userName
, buildName
, osVersion
and
projectName
are added, although neither mochify
(with a package-lock
, nor selenium, nor the web-driver nor the Firefox version, nor the OS, changed.
Just observing.
from mochify.js.
@mantoni : I'll see what I can do.
from mochify.js.
@mantoni Ok, removed all tests except 1. Still the same problem.
Safari 12 on Mojave fails, Safari 11 on High Sierra works. Firefox 64 on Mojave and Windows 10 fails.
See build Travis/00666 (mmh, what a coincidence ;-) )
- https://github.com/Toryt/contracts/tree/feature/firefox-browserstack-problem
- https://travis-ci.org/Toryt/contracts/jobs/475435690
- https://automate.browserstack.com/builds/da25456ea3c713f0fa5c96e6ffb836194ff134b4/sessions/22c2ed18fa67483a0c54929bbbb75e0b7134a10f
- https://automate.browserstack.com/builds/da25456ea3c713f0fa5c96e6ffb836194ff134b4/sessions/90ff804425fddcc9ca71793a0d3a5bddd75d37b3
- https://automate.browserstack.com/builds/da25456ea3c713f0fa5c96e6ffb836194ff134b4/sessions/9bd17d97c9759650bdf7018e24b96b097a81283a
The more I look into this, the more I get the impression that this must be a Browserstack issue. Some update they did between 2018-12-22 and 2018-12-29. I am sorry I inconvenienced you.
from mochify.js.
No worries. The issue on the Mochify side is clearly the error reporting. It is kind of difficult to extract meaningful information via WebDriver.
from mochify.js.
Ok, I found some time to investigate the issue and I believe that tge cause is a transition to Selenium 3. I guess that for some browsers the default Selenium version has changed to a newer protocol. I'm personally using SauceLabs and ran some tests there.
What I did in node_modules/min-wd/lib/driver.js
:
- Line 36:
var endpoint = context.asyncPolling ? '/execute/async' : '/execute/sync';
- Line 121:
request(context, 'POST', '/execute/sync', {
- Line 138:
request(context, 'POST', '/execute/sync', {
On SauceLabs this still works with all browsers I'm testing, except for Safari which only likes the old endpoints. If you have the possibility to run BrowserStack tests from your local machine, I'd appreciate if you could try applying these changes to see if they improve things for you. Thanks.
from mochify.js.
As requested:
- check out
https://github.com/Toryt/contracts.git
, branchorigin/feature/firefox-browserstack-problem
npm cit
npm run wd
- needs Browserstack credentials
- 1 simple Mocha test in each browser,
- failures observed with FF on Mojave and WIndows 10
POST /session/5fe53213aa6ddffca493325647b87c19437472dc/execute did not match a known command
- failure on Safari on Mojave
The command 'POST /session/a42bc4268658dd1a33c07aa508db29771f8a518f/execute' was not found.
- do the 3 changes you described above
npm run wd
- FF on Mojave, WIndows 10, and Safari on Mojave ok
- Chrome on Mojave and Windows 10, and Edge on WIndows 10 ok
- failures for Safari on High Sierra
The command 'POST /session/c1ddd6eeb37ce99b71a4716b182da0ff903b0f4d/execute/sync' was not found.
- failures for iPhoneX, and for Samsung Galaxy S9 and Samsung Galaxy Note 4
The URL '/wd/hub/session/f43e17eae7498b10f4b0e5559ef756be48c89cc6/execute/sync' did not map to a valid resource
from mochify.js.
This seems to no longer be an issue.
from mochify.js.
Related Issues (20)
- Async test cases that fail end the entire test suite HOT 2
- uncaught errors should be printed to stderr, not stdout HOT 6
- Support Puppeteer for Firefox HOT 6
- Support `--dumpio` option for tracing down errors with chromium
- Pass flags to Browserify HOT 3
- Update to a more recent version of mocha HOT 9
- Use Browserify 17 HOT 1
- Mochify Rewrite HOT 14
- `window._webdriver_manualPoll is not a function` on BrowserStack since 8.0.0 HOT 1
- Rewrite: Puppeteer settings HOT 1
- Rewrite: Integration tests for WebDriver
- Rewrite: Implement watch mode HOT 7
- Rewrite: Allow "external" mochify drivers
- Rewrite: Support native JavaScript modules HOT 2
- Rewrite: Release & publishing strategy HOT 11
- Rewrite: v1.0.0
- Rewrite: nested configuration does not get merged correctly
- Rewrite: Documentation HOT 1
- Rewrite: read spec/bundle from stdin HOT 2
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 mochify.js.