joelgriffith / navalia

A bullet-proof, fast, and reliable headless browser API
https://joelgriffith.github.io/navalia/
GNU General Public License v3.0
957 stars 33 forks source link

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

Open BenLorantfy opened 7 years ago

BenLorantfy commented 7 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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