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

pressKey(["CommandOrControl", "A"]) not working in chromium #2423

Closed
chilikasha opened this issue Jun 3, 2020 · 3 comments
Closed

pressKey(["CommandOrControl", "A"]) not working in chromium #2423

chilikasha opened this issue Jun 3, 2020 · 3 comments

Comments

@chilikasha
Copy link

What are you trying to achieve?

select whole text field's value

What do you get instead?

selection doesn't work.

from step_file.js

deleteFieldValue: function (selector) {
  this.click(selector)
  this.pressKey(["CommandOrControl", "A"])
  this.pressKey("Backspace")
},

only backspace works from function above. though it works fine in Firefox and Webkit

Details

  • CodeceptJS version: 2.6.5
  • NodeJS Version: 12.6.3
  • Operating System: Mac OS Mojave
  • Playwright 1.0.0
@chilikasha
Copy link
Author

seems to work after I added wait(1) before ctrl-A

@clinyong
Copy link

clinyong commented Oct 6, 2021

Still exist in codecept 3.1.2. Anyone can help?

  • Operating System: Mac OS 10.15.7
  • Chrome: 94.0.4606.71

@clinyong
Copy link

For people who using pptr, it's the problem of pptr, not codecept. You can find workaround here, puppeteer/puppeteer#1313 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants