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

                      Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

                      Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

                      How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page