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

Hammerhead.js typerror makes website crash #2859

Closed
esbarila opened this issue Feb 28, 2023 · 5 comments
Closed

Hammerhead.js typerror makes website crash #2859

esbarila opened this issue Feb 28, 2023 · 5 comments

Comments

@esbarila
Copy link

What is your Scenario?

Navigate to dev.remo.co

What is the Current behavior?

TypeError: Cannot read properties of undefined (reading 'ondevicechange')

It makes the app crash, can't start tests.

What is the Expected behavior?

should get to the Login screen.

What is your public website URL? (or attach your complete example)

https://dev.remo.co

What is your TestCafe test code?

fixture('Signup').page("https://dev.remo.co/");

Your complete configuration file

none yet

Your complete test report

No response

Screenshots

Screenshot from 2023-02-28 13-48-51

Steps to Reproduce

  1. Navigate to https://dev.remo.co

TestCafe version

2.1.0

Node.js version

v14.18.2

Command-line arguments

testcafe chrome test.js

Browser name(s) and version(s)

chrome 110

Platform(s) and version(s)

Linux Ubuntu 22.04.2

Other

No response

@Aleksey28
Copy link
Collaborator

Hi @esbarila

I managed to reproduce the issue. As a workaround, try using the Proxyless Mode. We are actively working on this mode.

@esbarila
Copy link
Author

esbarila commented Mar 2, 2023

@Aleksey28 Thanks for the update! The proxyless mode doesn't seem to help though. Tried using CLI, Im assuming no need to add to the config file if forced through the terminal.

@Aleksey28
Copy link
Collaborator

I opened this page in proxyless mode and got no errors. Please describe why proxyless mode didn't help you.

@esbarila
Copy link
Author

esbarila commented Mar 3, 2023

I opened this page in proxyless mode and got no errors. Please describe why proxyless mode didn't help you.

Im still getting the same error as original, Im running the test like this testcafe chrome tests/test.js --experimental-proxyless
Also added a testcaferc.json file with the experimentalProxyless config to true but no chance.

EDIT: disregard, i was using an old version of testcafe which didn't support experimentalProxyless

@miherlosev
Copy link
Contributor

Hi @esbarila,

As far as I understand, the issue is resolved by using the experimentalProxyless option. If you need to run tests in other browsers, please reopen this issue.

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

No branches or pull requests

3 participants