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 #63

Closed
kensoh opened this issue Sep 21, 2019 · 1 comment
Closed
Labels

Comments

@kensoh
Copy link
Member

kensoh commented Sep 21, 2019

Raising a pre-emptive issue for users who may changed the TagUI Chrome browser to a different zoom level than at 100%. The Chrome browser that TagUI invokes has 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 JavaScript 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 aisingapore/TagUI#553 while trying to replicate the issue.

@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 kensoh closed this as completed Sep 21, 2019
@kensoh kensoh added the query label Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant