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

Can Chrome be used in different zoom levels other than at 100%? - not really #573

Closed
kensoh opened this issue Sep 21, 2019 · 2 comments
Closed
Labels

Comments

@kensoh
Copy link
Member

kensoh commented Sep 21, 2019

Raising an issue to update documentation that Chrome needs to be used at 100% zoom.

Otherwise mouse clicks and interactions with web elements will not work. This is because TagUI tries to find the x, y co-ordinates of the web element and trigger a click at that location in Chrome, instead of simply calling methods such as click().

This more accurately re-creates user actions on the webpage and leads to more consistent interactions with websites (by representing a real user more accurately, the website response would be more consistent with how it responses to a real user).

However, with this method, if the Chrome browser is set to a zoom level different from 100%, the x, y co-ordinates to click on will be wrong and thus interactions will not work. Behaviour first observed in #553 while trying to replicate the issue.

@kensoh kensoh changed the title Can Chrome be used in different zoom levels other than at 100? - no Can Chrome be used in different zoom levels other than at 100%? - not really Sep 21, 2019
@kensoh kensoh added the query label Sep 21, 2019
@kensoh
Copy link
Member Author

kensoh commented Sep 21, 2019

Exception will be automating visually. At different zoom levels, as long the UI element image snapshots are done for that particular zoom level, the automation will work correctly.

@kensoh
Copy link
Member Author

kensoh commented Sep 21, 2019

Added to readme the following note, under the To Use section, right after showing usage of chrome option to run the Yahoo sample with Chrome browser. Copying @ck81 for info, thanks for this!

Make sure TagUI's Chrome browser is set to 100% zoom - as TagUI mimicks the user mouse-clicks at the (x,y) coordinates of web elements, using a different zoom level will cause clicks to be triggered at wrong locations

@kensoh kensoh closed this as completed Sep 23, 2019
kensoh added a commit to tebelorg/TagUI that referenced this issue Sep 24, 2019
kensoh added a commit to aisingapore/TagUI-Bricks that referenced this issue Sep 29, 2019
See aisingapore/TagUI#573 for more details. Gist is Chrome should normally be used at 100% for TagUI to work correctly. In this case, visual automation is used, and 125% zoom is used to make the automation interactions easier to see on the demo.
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

1 participant