Skip to content
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

Nightmare preload script conficts with the current testscafe-hammerhead version #14

Open
AndreyBelym opened this issue Apr 18, 2018 · 0 comments

Comments

@AndreyBelym
Copy link
Contributor

Nightmare preload scripts makes the window.onunload and window.onbeforeunload properties unconfigurable: https://github.com/segmentio/nightmare/blob/8c8fd96216ddb35e0352a7c5557295c7bd04868e/test/fixtures/preload/index.js#L48

The recent testcafe-hammerhead in [email protected] tries to reconfigure these properties: https://github.com/DevExpress/testcafe-hammerhead/blob/55838d82bcf363e4eea9f9777376fb200c1f4e5b/src/client/sandbox/event/unload.js#L95

It causes script error at load time on any page, and causes the browser to disconnect by timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant