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













0















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.










share|improve this question



















  • 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
















0















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.










share|improve this question



















  • 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














0












0








0








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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













  • 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













2 Answers
2






active

oldest

votes


















0














Try running it with --skip-uncaught-errors flag






share|improve this answer






























    0














    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






    share|improve this answer























      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
      );



      );













      draft saved

      draft discarded


















      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









      0














      Try running it with --skip-uncaught-errors flag






      share|improve this answer



























        0














        Try running it with --skip-uncaught-errors flag






        share|improve this answer

























          0












          0








          0







          Try running it with --skip-uncaught-errors flag






          share|improve this answer













          Try running it with --skip-uncaught-errors flag







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 8 at 19:53









          muscl3catmuscl3cat

          11




          11























              0














              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






              share|improve this answer



























                0














                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






                share|improve this answer

























                  0












                  0








                  0







                  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






                  share|improve this answer













                  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







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 8 at 22:28









                  hdorgevalhdorgeval

                  2,306213




                  2,306213



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

                      2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

                      Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme