-
Notifications
You must be signed in to change notification settings - Fork 15
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
Object [object Object] has no method 'on' #10
Comments
Having the same error: TypeError: browser.on is not a function
at /Users/niksy/Projects/karma-test/node_modules/karma/lib/launcher.js:95:17
at next (/Users/niksy/Projects/karma-test/node_modules/karma/node_modules/batch/index.js:118:7)
at Batch.end (/Users/niksy/Projects/karma-test/node_modules/karma/node_modules/batch/index.js:154:5)
at launch (/Users/niksy/Projects/karma-test/node_modules/karma/lib/launcher.js:111:11)
at invoke (/Users/niksy/Projects/karma-test/node_modules/karma/node_modules/di/lib/injector.js:75:15)
at Server.<anonymous> (/Users/niksy/Projects/karma-test/node_modules/karma/lib/server.js:171:24)
at Server.g (events.js:260:16)
at emitNone (events.js:67:13)
at Server.emit (events.js:166:7)
at emitListeningNT (net.js:1262:10)
at nextTickCallbackWith1Arg (node.js:426:9)
at process._tickCallback (node.js:348:17) |
@xdissent Looks like it's not just me, and has been verified by another user. I believe this issue is now worth addressing. If there's anything I can do to help, please let me know. |
Same thing for me using Karma 0.13.22 |
This is happening to me too |
Getting the same issue on Karma 0.13.2 |
The project hasn't been updated for a year.... I am not holding my breath for a fix :( |
@DanielApt @hbeaufils @lucasfcosta @mjbradford89 @jhuesos If anyone’s interested, I’ve managed to get it working: https://github.com/niksy/karma-ievms/tree/browser-decorator Since I don’t know CoffeeScript, I’ve fixed it in transpiled code, so if anyone want’s to transfer it to CoffeeScript and make PR to main repo, fire away :) What was the problem? I was looking at already existing launchers and saw that all those launchers inherit Also, methods can’t be defined on prototype, but must be initiated on every instance creation. Also, I’ve taken time to implement default logger so you can get terminal output of different VM lifecycle events (open VM, close and stop VM). Hope it helps you! |
@niksy this works and fix the error for me :
|
@niksy Thanks for the fix, it works like a charm! |
I'm trying to set up some automated tests with Karma, and want to run tests against my IE VMs.
Currently it's very basic, with only one test checking if
true
equalstrue
.Even in this very basic scenario it fails with the following error:
The
on
that seems to not exist is defined insidekarma's
launcher.js:96What should I do? I do notice the VM being opened, but nothing seems to happen once it has been opened. Please let me know if you need any further info.
The text was updated successfully, but these errors were encountered: