TestCafe get “Cannot read property 'pageX' of undefined” error on mobile Chrome emulatorHow to avoid 'cannot read property of undefined' errors?Uncaught TypeError: Cannot read property 'msie' of undefinedUncaught TypeError: Cannot read property 'msie' of undefined - jQuery toolsUncaught TypeError: Cannot read property 'pageX' of undefinedTypeError: Cannot read property 'then' of undefinedUncaught TypeError: Cannot read property 'pageX' of undefined on ChromeReact - uncaught TypeError: Cannot read property 'setState' of undefinedTestCafe: Cannot read property 'message' of undefinedChrome iphone emulation - Testcafe“Uncaught JavaScript error ”Uncaught Error: Cannot read property 'length' of undefined“ on page” - TestCafe
How do I know where to place holes on an instrument?
In 'Revenger,' what does 'cove' come from?
What is the most common color to indicate the input-field is disabled?
Watching something be piped to a file live with tail
How seriously should I take size and weight limits of hand luggage?
One verb to replace 'be a member of' a club
How badly should I try to prevent a user from XSSing themselves?
Why no variance term in Bayesian logistic regression?
How do I handle a potential work/personal life conflict as the manager of one of my friends?
Examples of smooth manifolds admitting inbetween one and a continuum of complex structures
How do I deal with an unproductive colleague in a small company?
Do scales need to be in alphabetical order?
Is it possible to create a QR code using text?
How can I determine if the org that I'm currently connected to is a scratch org?
Personal Teleportation: From Rags to Riches
How to show a landlord what we have in savings?
Arrow those variables!
Can my sorcerer use a spellbook only to collect spells and scribe scrolls, not cast?
Assassin's bullet with mercury
What is a romance in Latin?
Is it logically or scientifically possible to artificially send energy to the body?
What does the expression "A Mann!" means
CAST throwing error when run in stored procedure but not when run as raw query
How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?
TestCafe get “Cannot read property 'pageX' of undefined” error on mobile Chrome emulator
How to avoid 'cannot read property of undefined' errors?Uncaught TypeError: Cannot read property 'msie' of undefinedUncaught TypeError: Cannot read property 'msie' of undefined - jQuery toolsUncaught TypeError: Cannot read property 'pageX' of undefinedTypeError: Cannot read property 'then' of undefinedUncaught TypeError: Cannot read property 'pageX' of undefined on ChromeReact - uncaught TypeError: Cannot read property 'setState' of undefinedTestCafe: Cannot read property 'message' of undefinedChrome iphone emulation - Testcafe“Uncaught JavaScript error ”Uncaught Error: Cannot read property 'length' of undefined“ on page” - TestCafe
I want to test a mobile version of the website. When I the window is resized it works fine. But when I enable the emulator on Chrome, it fails with the following errors in the console:
Cannot read property 'pageX' of undefined at HTMLDocument.L
(https://test.com/_ui/js/app/base.339067918ae10592e7c1bdd951897313.js:2:300833)
at HTMLDocument.dispatch https://test.com/_ui/js/requirejs.jquery.8a08312711bf508edda14a4e6a36ac34.js:5:43928)
at HTMLDocument.y.handle (https://test.com/_ui/js/requirejs.jquery.8a08312711bf508edda14a4e6a36ac34.js:5:41806)
at l (http://testcafe.local.test.com:1337/hammerhead.js:10:9320)
at HTMLDocument.<anonymous> (http://testcafe.local.test.com:1337/hammerhead.js:3:19119)
at HTMLSelectElement.dispatchEvent (http://testcafe.local.test.com:1337/hammerhead.js:3:13879)
at e._dispatchTouchEvent (http://testcafe.local.test.com:1337/hammerhead.js:4:5319)
at e._simulateEvent (http://testcafe.local.test.com:1337/hammerhead.js:4:8294)
at e.touchmove http://testcafe.local.test.com:1337/hammerhead.js:4:19116)
at t.move (http://testcafe.local.test.com:1337/testcafe-automation.js:1:29523)
It failed after the first click of a button or dropbox. I can't reproduce it manually. My code is
await t.click(Selector('select[data-test-id="listerSortOptions-select"]', visibilityCheck: true))
const sortOption = Selector('select[data-test-id="listerSortOptions-select"]', visibilityCheck: true).child(option);
await t.click(sortOption);
or
await t.click(Selector('div.productLister-viewOptions-inner > a', visibilityCheck: true));
TestCafe version 0.23.3.
javascript testcafe
add a comment |
I want to test a mobile version of the website. When I the window is resized it works fine. But when I enable the emulator on Chrome, it fails with the following errors in the console:
Cannot read property 'pageX' of undefined at HTMLDocument.L
(https://test.com/_ui/js/app/base.339067918ae10592e7c1bdd951897313.js:2:300833)
at HTMLDocument.dispatch https://test.com/_ui/js/requirejs.jquery.8a08312711bf508edda14a4e6a36ac34.js:5:43928)
at HTMLDocument.y.handle (https://test.com/_ui/js/requirejs.jquery.8a08312711bf508edda14a4e6a36ac34.js:5:41806)
at l (http://testcafe.local.test.com:1337/hammerhead.js:10:9320)
at HTMLDocument.<anonymous> (http://testcafe.local.test.com:1337/hammerhead.js:3:19119)
at HTMLSelectElement.dispatchEvent (http://testcafe.local.test.com:1337/hammerhead.js:3:13879)
at e._dispatchTouchEvent (http://testcafe.local.test.com:1337/hammerhead.js:4:5319)
at e._simulateEvent (http://testcafe.local.test.com:1337/hammerhead.js:4:8294)
at e.touchmove http://testcafe.local.test.com:1337/hammerhead.js:4:19116)
at t.move (http://testcafe.local.test.com:1337/testcafe-automation.js:1:29523)
It failed after the first click of a button or dropbox. I can't reproduce it manually. My code is
await t.click(Selector('select[data-test-id="listerSortOptions-select"]', visibilityCheck: true))
const sortOption = Selector('select[data-test-id="listerSortOptions-select"]', visibilityCheck: true).child(option);
await t.click(sortOption);
or
await t.click(Selector('div.productLister-viewOptions-inner > a', visibilityCheck: true));
TestCafe version 0.23.3.
javascript testcafe
1
I would appreciate it if you provide more information about the problem so that I can find its cause: specify the TestCafe version, provide code that runs TestCafe, send us a public link to your website or a simple example in which I can reproduce the problem.
– mlosev
Feb 6 at 13:55
add a comment |
I want to test a mobile version of the website. When I the window is resized it works fine. But when I enable the emulator on Chrome, it fails with the following errors in the console:
Cannot read property 'pageX' of undefined at HTMLDocument.L
(https://test.com/_ui/js/app/base.339067918ae10592e7c1bdd951897313.js:2:300833)
at HTMLDocument.dispatch https://test.com/_ui/js/requirejs.jquery.8a08312711bf508edda14a4e6a36ac34.js:5:43928)
at HTMLDocument.y.handle (https://test.com/_ui/js/requirejs.jquery.8a08312711bf508edda14a4e6a36ac34.js:5:41806)
at l (http://testcafe.local.test.com:1337/hammerhead.js:10:9320)
at HTMLDocument.<anonymous> (http://testcafe.local.test.com:1337/hammerhead.js:3:19119)
at HTMLSelectElement.dispatchEvent (http://testcafe.local.test.com:1337/hammerhead.js:3:13879)
at e._dispatchTouchEvent (http://testcafe.local.test.com:1337/hammerhead.js:4:5319)
at e._simulateEvent (http://testcafe.local.test.com:1337/hammerhead.js:4:8294)
at e.touchmove http://testcafe.local.test.com:1337/hammerhead.js:4:19116)
at t.move (http://testcafe.local.test.com:1337/testcafe-automation.js:1:29523)
It failed after the first click of a button or dropbox. I can't reproduce it manually. My code is
await t.click(Selector('select[data-test-id="listerSortOptions-select"]', visibilityCheck: true))
const sortOption = Selector('select[data-test-id="listerSortOptions-select"]', visibilityCheck: true).child(option);
await t.click(sortOption);
or
await t.click(Selector('div.productLister-viewOptions-inner > a', visibilityCheck: true));
TestCafe version 0.23.3.
javascript testcafe
I want to test a mobile version of the website. When I the window is resized it works fine. But when I enable the emulator on Chrome, it fails with the following errors in the console:
Cannot read property 'pageX' of undefined at HTMLDocument.L
(https://test.com/_ui/js/app/base.339067918ae10592e7c1bdd951897313.js:2:300833)
at HTMLDocument.dispatch https://test.com/_ui/js/requirejs.jquery.8a08312711bf508edda14a4e6a36ac34.js:5:43928)
at HTMLDocument.y.handle (https://test.com/_ui/js/requirejs.jquery.8a08312711bf508edda14a4e6a36ac34.js:5:41806)
at l (http://testcafe.local.test.com:1337/hammerhead.js:10:9320)
at HTMLDocument.<anonymous> (http://testcafe.local.test.com:1337/hammerhead.js:3:19119)
at HTMLSelectElement.dispatchEvent (http://testcafe.local.test.com:1337/hammerhead.js:3:13879)
at e._dispatchTouchEvent (http://testcafe.local.test.com:1337/hammerhead.js:4:5319)
at e._simulateEvent (http://testcafe.local.test.com:1337/hammerhead.js:4:8294)
at e.touchmove http://testcafe.local.test.com:1337/hammerhead.js:4:19116)
at t.move (http://testcafe.local.test.com:1337/testcafe-automation.js:1:29523)
It failed after the first click of a button or dropbox. I can't reproduce it manually. My code is
await t.click(Selector('select[data-test-id="listerSortOptions-select"]', visibilityCheck: true))
const sortOption = Selector('select[data-test-id="listerSortOptions-select"]', visibilityCheck: true).child(option);
await t.click(sortOption);
or
await t.click(Selector('div.productLister-viewOptions-inner > a', visibilityCheck: true));
TestCafe version 0.23.3.
javascript testcafe
javascript testcafe
edited Feb 11 at 8:56
Tatyna_v
asked Feb 6 at 12:07
Tatyna_vTatyna_v
112
112
1
I would appreciate it if you provide more information about the problem so that I can find its cause: specify the TestCafe version, provide code that runs TestCafe, send us a public link to your website or a simple example in which I can reproduce the problem.
– mlosev
Feb 6 at 13:55
add a comment |
1
I would appreciate it if you provide more information about the problem so that I can find its cause: specify the TestCafe version, provide code that runs TestCafe, send us a public link to your website or a simple example in which I can reproduce the problem.
– mlosev
Feb 6 at 13:55
1
1
I would appreciate it if you provide more information about the problem so that I can find its cause: specify the TestCafe version, provide code that runs TestCafe, send us a public link to your website or a simple example in which I can reproduce the problem.
– mlosev
Feb 6 at 13:55
I would appreciate it if you provide more information about the problem so that I can find its cause: specify the TestCafe version, provide code that runs TestCafe, send us a public link to your website or a simple example in which I can reproduce the problem.
– mlosev
Feb 6 at 13:55
add a comment |
2 Answers
2
active
oldest
votes
Try running it with --skip-uncaught-errors flag
add a comment |
Try --skip-js-errors
.
If this does not work, I suspect the error is due to the fact that TestCafe is trying to scroll the window to get the 'big' cursor to be over the element that you want to click on: in this case I suggest you to report a reproductible sample to @mlosev
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54553299%2ftestcafe-get-cannot-read-property-pagex-of-undefined-error-on-mobile-chrome%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try running it with --skip-uncaught-errors flag
add a comment |
Try running it with --skip-uncaught-errors flag
add a comment |
Try running it with --skip-uncaught-errors flag
Try running it with --skip-uncaught-errors flag
answered Mar 8 at 19:53
muscl3catmuscl3cat
11
11
add a comment |
add a comment |
Try --skip-js-errors
.
If this does not work, I suspect the error is due to the fact that TestCafe is trying to scroll the window to get the 'big' cursor to be over the element that you want to click on: in this case I suggest you to report a reproductible sample to @mlosev
add a comment |
Try --skip-js-errors
.
If this does not work, I suspect the error is due to the fact that TestCafe is trying to scroll the window to get the 'big' cursor to be over the element that you want to click on: in this case I suggest you to report a reproductible sample to @mlosev
add a comment |
Try --skip-js-errors
.
If this does not work, I suspect the error is due to the fact that TestCafe is trying to scroll the window to get the 'big' cursor to be over the element that you want to click on: in this case I suggest you to report a reproductible sample to @mlosev
Try --skip-js-errors
.
If this does not work, I suspect the error is due to the fact that TestCafe is trying to scroll the window to get the 'big' cursor to be over the element that you want to click on: in this case I suggest you to report a reproductible sample to @mlosev
answered Mar 8 at 22:28
hdorgevalhdorgeval
2,306213
2,306213
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54553299%2ftestcafe-get-cannot-read-property-pagex-of-undefined-error-on-mobile-chrome%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I would appreciate it if you provide more information about the problem so that I can find its cause: specify the TestCafe version, provide code that runs TestCafe, send us a public link to your website or a simple example in which I can reproduce the problem.
– mlosev
Feb 6 at 13:55