Testcafe: Make pressKey to work for elements within shadowDOM

Created on 18 May 2018  路  12Comments  路  Source: DevExpress/testcafe

Are you requesting a feature or reporting a bug?

I am selecting an element like this
const nameInput = Selector(() => component.shadow.querySelector('.nameInput'))
It worked fine if the element is outside of shadow root, like a normal element.

What is the current behavior?

When I am testing
await t.typeText(nameInput, 'apple') .pressKey('backspace')
nothing happens

I am on version 0.20.0

What is the expected behavior?

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

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

Tested page URL:

Test code


Specify your

  • operating system:
  • testcafe version:
  • node.js version:
client level 2 Auto-locked automations Web API support enhancement

Most helpful comment

Hi @ls84, I've reproduced the issue. I'll notify you when we will publish a new version with the fix to NPM.

All 12 comments

Hi @ls84, I've reproduced the issue. I'll notify you when we will publish a new version with the fix to NPM.

Neither hover nor mouseclicks work combined with shadow dom. Any progress regarding this would be appreciated.

@raphaellueckl the initial issue is only about the pressKey action. We would like to research your issue in detail. Please create a separate bug report using this form https://github.com/DevExpress/testcafe/issues/new?template=bug-report.md
Please also provide us with a sample demonstrating the issue.

I'm running into the same issue with .pressKey('enter') on an input within a shadow DOM. Any progress/updates on this?

No updates yet. Our developers are still looking into this issue.聽You will be automatically notified if you track this issue once we make progress.

@AlexSkorkin Do you know if this is being actively worked on, or would PRs be welcomed?

@matthewdouglas
Since this issue is not in the current 'Sprint #37' milestone, your PR is welcome!

I still see this issue, will this be fixed soon?

@saritha11

Hello,

We plan to fix it. However, I cannot give you any estimate at the moment.

Any update on this ticket?

@karankumar7 No news yet. We'll update this thread once we have any results. We would highly appreciate your PR.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

multivoltage picture multivoltage  路  3Comments

Turkirafaa picture Turkirafaa  路  3Comments

madroneropaulo picture madroneropaulo  路  3Comments

darkowic picture darkowic  路  3Comments

AndreyBelym picture AndreyBelym  路  3Comments