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

type identifier as [email protected] [enter], [enter] not working? - resolved using keyboard #1018

Closed
lookang opened this issue Apr 19, 2021 · 9 comments
Assignees
Labels

Comments

@lookang
Copy link
Contributor

lookang commented Apr 19, 2021

Dear ken,
I think the [enter] doesn't work properly as [enter] on the keyboard.
Is there a fix?

I read this #370
but the [enter] doesn't trigger a keyboard [return] on the Mac? When I press on the real physical keyboard, it is triggered correctly. So maybe I need some help.
Thanks!

My new flow is here
https://github.com/lookang/TagUI/blob/main/share/share.tag

@kensoh
Copy link
Member

kensoh commented Apr 19, 2021

Hi Lawrence, normally for webpages the [enter] will still work, for example below.

https://google.com
type q as singapore[enter]

But in some cases, the webpage design does not take a virtual 'enter' keypress as valid and ignore that input. For the workflow, do you have a minimal replication script that can reproduce that issue and I can take a look with no user account?

Most likely it is that webpage can't take that input. Or it could be the target to receive that key is a child or parent. If cant take input then will have to consider simulating a real key press with keyboard step or any other ways to proceed to next step?

@kensoh kensoh self-assigned this Apr 19, 2021
@kensoh kensoh added the query label Apr 19, 2021
@kensoh kensoh changed the title type /html/body/div[3]/div[2]/div/div[2]/div[1]/div[3]/div[1]/div/div[1] as [email protected] [enter] , the [enter] not working? is it a bug? type identifier as [email protected] [enter], the [enter] not working? - pending more details Apr 19, 2021
@kensoh kensoh changed the title type identifier as [email protected] [enter], the [enter] not working? - pending more details type identifier as [email protected] [enter], the [enter] not working? - pending details Apr 19, 2021
@lookang
Copy link
Contributor Author

lookang commented Apr 19, 2021

Dear Ken,
What is the command for
"simulating a real key press with keyboard step "?

I tried also keyboard [enter]
But that doesn't work too :)

@lookang
Copy link
Contributor Author

lookang commented Apr 19, 2021

I can only think of a zoom session where I can give you remote control to investigate?
Or I could do a YouTube to show the problem?
Which works for you?

@kensoh
Copy link
Member

kensoh commented Apr 19, 2021

Dear Lawrence, a likely reason is because your Chrome browser is not in focus or your textbox is not in 'real' focus.

For below step,

type /html/body/div[3]/div[2]/div/div[2]/div[1]/div[3]/div[1]/div/div[1] as [email protected][enter] 

Try changing it to

click chrome_icon.png
type email_textbox.png as [email protected]
keyboard [enter]

or

click chrome_icon.png
type email_textbox.png as [email protected][enter]

And see if that works. Above first clicks on the Chrome icon (can take snapshot with command+shift+4) on your macOS dock bar, typing into the textbox (another snaphot) using computer vision and then entering it. Using web automation, although a click seems to make the textbox in focus, it may not really be in focus as far as the OS layer is concerned.

Yes Zoom would be great, if above doesn't work, will you be available on Thursday btw 4-5pm? We have a weekly Zoom call to work with users 1-to-1 on these things. This is the link to the Zoom meeting URL. Hopefully above suggestions will work!

@kensoh kensoh changed the title type identifier as [email protected] [enter], the [enter] not working? - pending details type identifier as [email protected] [enter], the [enter] not working? - pending testing Apr 19, 2021
@lookang
Copy link
Contributor Author

lookang commented Apr 21, 2021

i followed your instruction
i created a chrome_icon.png
chrome_icon
i saved the in /Users/lookang/Desktop/tagui/flows/lookang/20210318/
which is the same to the flow file.
But the error message in cmd is
click chrome_icon.png
ERROR - cannot find /Users/lookang/Desktop/tagui/flows/lookang/20210318/chrome_icon.png on screen

@kensoh
Copy link
Member

kensoh commented Apr 22, 2021

Hi Lawrence, is it that you have a high-res Retina mac display? There is a known issue. On Mac laptops with Retina display, the Mac snapshot tool will create an image that is double the size of what is shown on the screen. This causes image to be incorrect and unable to find a match. For such laptops, need to either resize it down or use another snapshot tool.

More details on this and the solution

@kensoh
Copy link
Member

kensoh commented Apr 22, 2021

Later at 4pm today, if you happen to be available, you can join us at the weekly Zoom call to troubleshoot together.

Zoom meeting URL - https://nus-sg.zoom.us/j/85847222905?pwd=bm9yb3R2NEZEVnRPZ0ZKdjJ0d1VhZz09

@lookang
Copy link
Contributor Author

lookang commented Apr 22, 2021

Thanks, Ken, for your guidance. It is working now.
https://github.com/lookang/TagUI/tree/main/share
The updated and working files are kept here.

@kensoh
Copy link
Member

kensoh commented Apr 22, 2021

Thanks Lawrence! For time being, I track your sharings here - #1003

Will figure out a way to make community sharings more accessible!

@kensoh kensoh changed the title type identifier as [email protected] [enter], the [enter] not working? - pending testing type identifier as [email protected] [enter], the [enter] not working? - resolved using keyboard Apr 28, 2021
@kensoh kensoh changed the title type identifier as [email protected] [enter], the [enter] not working? - resolved using keyboard type identifier as [email protected] [enter], [enter] not working? - resolved using keyboard Apr 28, 2021
@kensoh kensoh closed this as completed Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants