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
Can't test Angular2 apps on FireFox #2784
Comments
FYI, it is not related to a specific firefox version - I've tried with 38,39,40..43. Same problem. |
@jleyba may have some idea. |
@dnozay I've tried with the latest selenium (from the master branch) - same issue. Note that it also fails with |
created SeleniumHQ/selenium#1416 in case it is a |
@dnozay awesome, thanks for tracking this down! |
The same issue here. beforeEach((done) => {
browser.get(specUrl);
$('body').isPresent().then(()=> {
done();
}, () => {
//error skipped
done();
})
}); So before each test I do |
it works well in my code, thanks! :) |
Per the discussion on selenium, this looks like something to do with how Angular2 is patching EventTargets. |
Digging in further, I believe the problem is due to zone.js patching That sets
The firefox-driver extension also uses I think the code from the normal site can't access properties from the code from the plugin because they're in different domains, but I need to learn more about Firefox's plugin permissions to debug further. |
Minimal failing example at https://github.com/juliemr/zone-firefox-driver |
I've filed an issue with zone.js: angular/zone.js#234 It may alternatively be possible to change FirefoxDriver to export the listener function from the driver's add-on content script to the page script, to avoid the permissions error, but it seems like the ball is in Zone's court since it's the one patching |
I ran into this issue as well but it seems to have been fixed since upgrading to angular2-beta.15 (which includes the updates to Zone.js) |
I still get the error:
|
@nbuso "dependencies": { |
This is fixed in the latest zones. |
I am still getting timeout error in Firefox 47 and 48. Can someone please confirm if it is still an issue? Firebox browser is opening but test is not running and i get a timeout. |
I can for sure test on Firefox 47, I did not try 48. Is not an issue for me anymore |
After updating Angular JS 1.4.x to Angular 2, Selenium tests can't run anymore via grunt-protractor-runner on Firefox. As soon as AngularJS is loaded, the following error occurs (see Stackoverflow for details):
So to isolate the problem I installed the sample Angular 2 Go with Protractor ! and got exactly the same error when I changed
browserName: 'chrome'
tofirefox
.Thus I think this is an issue either by protractor or by selenium?
The text was updated successfully, but these errors were encountered: