Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Is there anyway to press enter in a textbox? #58

Open
BenLorantfy opened this issue Sep 18, 2017 · 3 comments
Open

Is there anyway to press enter in a textbox? #58

BenLorantfy opened this issue Sep 18, 2017 · 3 comments

Comments

@BenLorantfy
Copy link

For example, when entering text into a search I'd like to press enter afterwards. Sometimes there's no button to press to confirm a text entry.

@castrolol
Copy link

castrolol commented Sep 29, 2017

Any way to do it ? I need it too...

I used it this way, and works

    await chrome.type(".field", "\r");

Is it the right way to do ?

@joelgriffith
Copy link
Owner

That might just work. I think most listeners use the keyType when handling events, which I'd guess wouldn't work with this.

FWIW I'm in the process of deprecating this module as more vetted options have shown up (puppeteer and chromeless). I'd heavily recommend using one of those. If they don't meet your needs I'd love to hear about it and see how we can fix that. Thanks!

@SoulAuctioneer
Copy link

@joelgriffith When you say you're in the process of deprecating this module, do you mean Navalia as a whole?

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

No branches or pull requests

4 participants