Sergey Avdeev
Sergey Avdeev

Reputation: 930

ChromeDriver support for clicking when zoom is not 100%

I use chromedriver on Windows. When the zoom level in the browser is set to anything different from 100% element.click() may work incorrectly. Instead of clicking the specified element it clicks another element (possibly located at the position where the original element would have been at 100% zoom). In my case, I can't control zoom level on the browser. So setting it back to 100% as in the GIF below is not an option.

I knew this was a limitation for IEDriver:

The browser zoom level must be set to 100%

But the chromedriver website doesn't explicitly mention that. And I wonder is it a known limitation or a bug?

Are there any workarounds for this?

Here is a gif demonstrating the issue:GIF demonstrating clicking issue The demo page and the script are here.

UPDATE:

Upvotes: 9

Views: 2483

Answers (1)

Sergey Avdeev
Sergey Avdeev

Reputation: 930

This is a known issue and is tracked in the chromedriver bug tracker.

Upvotes: 5

Related Questions