Skip to content

Cannot read properties of null (reading 'root') #8454

@metaxgirl

Description

@metaxgirl

I am trying to run the following test in testcafe:

  1. Go to a specific page
  2. Click a box and type in the page's name
  3. Click on the page to edit
  4. Edit a particular field on the page and update the page
  5. Go to the actual page and verify that the update was successful
  6. Go back to the specific page
  7. Click a box and type in the page's name
  8. Click on the page to edit
  9. Click on the particular field and attempt to use typeText(field, text) and it fails

The error is
A JavaScript error occurred on "https://testcafe/website.com".
Repeat test actions in the browser and check the console for errors.
Enable the “skipJsErrors” option to ignore JavaScript errors during test execution. Learn more: "https://testcafe.io/documentation/404038/recipes/debugging/skip-javascript-errors"
If the website only throws this error when you test it with TestCafe, please create a new issue at:
"https://github.com/DevExpress/testcafe/issues/new?template=bug-report.md".

  JavaScript error details:
  Cannot read properties of null (reading 'root')

I have tried this every way I can think of and I am able to remove the text but I cannot add it back, I've tried:
ctrl+a delete
ctrl+a backspace
selectText and then putting spaces

This can be done on our testcafe instance just fine, just not through an automated test.

I would like to add if I do pressKey(element, 't e s t') it works but typeText(element, 'test') does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions