Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

  • Chrome version: 60.0.3112.113 (Official Build) (32-bit)
  • chromedriver version: 2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a)
like image 403
Sergey Avdeev Avatar asked Sep 18 '17 23:09

Sergey Avdeev


1 Answers

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

like image 118
Sergey Avdeev Avatar answered Oct 25 '22 05:10

Sergey Avdeev