navalia icon indicating copy to clipboard operation
navalia copied to clipboard

Is there anyway to press enter in a textbox?

Open BenLorantfy opened this issue 7 years ago • 3 comments

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.

BenLorantfy avatar Sep 18 '17 13:09 BenLorantfy

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 ?

castrolol avatar Sep 29 '17 18:09 castrolol

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!

joelgriffith avatar Oct 06 '17 14:10 joelgriffith

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

SoulAuctioneer avatar Nov 09 '17 22:11 SoulAuctioneer