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

Native Automation: The "Ctrl+S" key combination produces the event.text property #7680

Closed
Dmitry-Ostashev opened this issue May 4, 2023 · 1 comment
Assignees
Labels
SYSTEM: native automation TYPE: bug The described behavior is considered as wrong (bug).

Comments

@Dmitry-Ostashev
Copy link
Contributor

Dmitry-Ostashev commented May 4, 2023

What is your Scenario?

Simulate the "Ctrl+S" key combination.

What is the Current behavior?

It produces an event with the text: "s" property. Puppeteer does not. For example:

TestCafe:
image

Puppeteer:
image

image

What is the Expected behavior?

It should not produce "text" property.

What is your public website URL? (or attach your complete example)

example.com

What is your TestCafe test code?

fixtureFixture.pageexample.com;

test('Test', async t => {
await t.pressKey('Ctrl+s');
});

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

  1. Add console.log(options); in line 28 in the following file: node_modules\testcafe\lib\native-automation\utils\cdp.js:
    image

  2. Run the test.

  3. See the event options in Console.

TestCafe version

2.5.1-rc.1

Node.js version

No response

Command-line arguments

npx testcafe chrome test.js --native-automation

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

@Dmitry-Ostashev Dmitry-Ostashev added TYPE: bug The described behavior is considered as wrong (bug). SYSTEM: native automation labels May 4, 2023
@Dmitry-Ostashev Dmitry-Ostashev changed the title Native Automation: The "Ctrl+S" key combination produces event.text property Native Automation: The "Ctrl+S" key combination produces the event.text property May 4, 2023
@Dmitry-Ostashev Dmitry-Ostashev self-assigned this May 10, 2023
@github-actions
Copy link

Release v2.6.1-rc.1 addresses this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SYSTEM: native automation TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

1 participant