I am using chromedriver on windows. When the zoom level in the browser is set to any value other than 100% element.click () may not work correctly. Instead of clicking on the specified element, it clicks on another element (possibly located in the place where the original element would have 100% scaling). In my case, I cannot control the zoom level in the browser. Therefore, 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 should be set to 100%
But the chromatograph website does not explicitly mention this. And I wonder is this a known limitation or bug?
Are there any workarounds for this?
Here is the gif demonstrating the problem:
Demo page and script here .
UPDATE:
- Chrome version: 60.0.3112.113 (official build) (32-bit)
- chromedriver version: 2.32.498550 (9dec58e66c31bcc53a9ce3c7226f0c1c5810906a)
javascript selenium webdriver selenium-chromedriver
Sergey Avdeev
source share