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

Cannot read property 'nextSibling' of undefined #1442

Closed
ytanruengsri opened this issue Apr 23, 2017 · 8 comments
Closed

Cannot read property 'nextSibling' of undefined #1442

ytanruengsri opened this issue Apr 23, 2017 · 8 comments
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: hammerhead TYPE: bug The described behavior is considered as wrong (bug).
Milestone

Comments

@ytanruengsri
Copy link

Are you requesting a feature or reporting a bug?

Reporting a bug

What is the current behavior?

Always getting the following error

Errors:

Uncaught Error: Cannot read property 'nextSibling' of undefined

What is the expected behavior?

Test should not fail :)

How would you reproduce the current behavior (if this is a bug)?

Just run the below code

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://www.zalando.de/nike-sportswear-sneaker-low-metallic-silvervarsity-redblack-ni111s08k-d11.html

Test code

fixture `Example page`
    .page `https://www.zalando.de/nike-sportswear-sneaker-low-metallic-silvervarsity-redblack-ni111s08k-d11.html`;

test('verify redirection', async t => {
    await t
        .debug()
        .click('.z-navicat-header_logoLinkWrapper');

    const location = await t.eval(() => window.location);

    await t.expect(location.pathname).eql('damen-home/');
});

Specify your

  • operating system: MacOSX Sierra 10.12.4
  • testcafe version: 0.14.0
  • node.js version: v7.7.4
@AlexanderMoskovkin AlexanderMoskovkin added the TYPE: bug The described behavior is considered as wrong (bug). label Apr 23, 2017
@AlexanderMoskovkin AlexanderMoskovkin added this to the Sprint #7 milestone Apr 23, 2017
@AlexanderMoskovkin
Copy link
Contributor

Hi,

I've reproduced the problem and we will investigate it.

As I workaround you can run the test with the skip-js-errors flag:
testcafe chrome test.js -e

@gpsarkar
Copy link

I got a similar one.
Uncaught TypeError: Cannot read property 'offsetWidth' of undefined

Sorry, couldn't share the test page here.

@AlexanderMoskovkin
Copy link
Contributor

Hi @gpsarkar,
I'm not sure that the cause of your problem is the same with the problem reported by @ytanruengsri. There are two ways to check it:

  1. Wait for fix for the problem described in the ticket initially
  2. Create a simple example that allows to reproduce your problem (it's impossible to check your issue without it).
    Meanwhile as a workaround you can try to run test with the skip-js-errors flag too.

@gpsarkar
Copy link

@AlexanderMoskovkin Ok. I will try to create a test page to reproduce it.

@ytanruengsri
Copy link
Author

@AlexanderMoskovkin @gpsarkar with the workaround I'm able to run tests.

@AlexanderMoskovkin
Copy link
Contributor

@ytanruengsri Cool! You can use TestCafe with it for now. Meanwhile we are working on the problem and we be able to provide the version with the fix as soon as it's done.

@LavrovArtem
Copy link
Contributor

LavrovArtem commented Jul 21, 2017

fixed in testcafe@0.17.0-alpha4

@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: hammerhead TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

5 participants