Enter button keypress in Puppeteer - keyboard

I am working on Puppeteer and using keyboard.
I get stuck when typing some destination in search box then I find.
There are two action:
await page.keyboard.press('ArrowDown');
await page.keyboard.press('Enter');
Then I got result:
Image when search location using api Google
Problem is 'Enter' button seem not really working with the suggest destination when the code await page.keyboard.press('Enter'); run. It can not find this destination by auto.
But I tried to search by manually, 'ArrowDown' press and 'Enter' press, then I can find the destination by manually.
Can you help me find out solution and solve it?
Thank you so much.

The OP seems to want to have the Enter keypress not go to the original search field, but to the DIV of postal addresses that Google Maps generates in response to his Puppeteer bot typing the first few letters of a street name or similar. So he wants to confirm a Google Maps search suggestion.
So the solution is to first type in a few letters into the search field, scan the DOM tree anew, to find that DIV that appeared in response to the keypresses, then press arrow down until the desired entry is selected, and send the Enter keypress to it, instead of sending it to the original Search field.

Related

Unable to type more than one letter in the Search Form on mobile devices

I am trying to enter text in the text field of Elementor Search Form when using the mobile devices. But whenever I enter any word in, it will appear only one letter and no more.
It works fine with any Desktop though. The problem only appears when using the phones.
You can see the issue on the Website here. Click the search icon on the top right of the page, which calls search form out. Does anyone has any idea why is this happening and how to fix it. Any help is much appreciated.

Chrome Extension for URL Bar pre-load

I am looking to develop a Google Chrome extension that affects the way chrome loads text typed into the URL bar.
Current functionality: if your text matches history / bookmarks it'll pull those up and auto-populate with the suggestion(s) and if you keep typing it'll update it's suggestions or remove them. If you type something that doesn't match any URL (like "test") it'll just do a search for the word(s) on google.com.
Goal: I want to be able to use the extension to listen to the text entered before it sends it to Chrome for loading the site / looking for a search term.
Example: if I type "test" and hit enter, I want the extension to listen to that first, tell Chrome what to do next (load a different site, search for a different word, etc.). Is that possible?
What API's (?) would I use for something like that? Any help would be greatly appreciated.

How to make a search bar in cake php?

I want a search bar that will search each time the user enters or deletes a character. The research is done in two columns with an 'OR'.
(EDITED)
I've been able to make my search bar with ajax comunication. But once the user has the search results, the use of the paginator cause an Method Not Allowed on this line of my search function of the controller :
$this->request->allowMethod('ajax');
Although you didn't provide much description in the question, as per the description what you need is the autocomplete functionality.
https://jqueryui.com/autocomplete/ This is the JQ based autocomplete plugin, helped me in a number of project for searching DB when a user enters something in the search box

How to get gmail full screenshot

I'm trying to get full screenshot of HTML mail on Gmail.
Chrome extensions which like Screen Capture (by Google) does't work enough.
What should I do?
You'll not be able to take the complete screenshot of an email in Gmail default window. You need to take a different route to accomplish this i.e.
Click on the Print, it will open a new tab with Print dialogue.
Close/Cancel the Print dialogue (don't close the new tab).
Use Nimbus Screenshot or any other extension to take the screenshot of the HTML email.
Yes, Screen Capture by Google doesn't work for a long time. I recommend you Nimbus Screenshot. It is also a Chrome screenshot extension. And I just used it to get a full screenshot of HTML mail on Gmail. Hope it works for you.
I have tried everything with Nimbus but it simply wont work. Fragment Area takes the entire screenshot but only the visible part is saved rest image is blank.
Instead try clicking on the 'Print' icon on the upper right corner of your mail and save it as PDF.

jqGrid search filter questions

Have two questions.
Make the search filter form non modal.
Allow searching by pressing enter key instead of having to press the Find button.
thanks.
sachin,
Your question seems to be more of a statement, but if you're looking for various options for jqgrid, take a look at:
http://www.trirand.com/jqgrid/jqgrid.html#
New in Version 3.5 > Integrated Search Toolbar
This allows you to interactively search and it respects the Enter key.
However, you lose operators... but I suppose you could modify the code that's given to add something similar back in (or bundle your operator in with the text....ie, user enters "> 400" rather than "400", but this poses security risks)

Resources