w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
685 stars 195 forks source link

Fails to interact with elements within a scaled frame #1854

Open christian-bromann opened 4 weeks ago

christian-bromann commented 4 weeks ago

Given a user defines a frame via:

<div style="transform: scale(0.5); transform-origin: top left; margin: 1rem; width: 400px; height: 400px; border: 1px solid black">
  <iframe id="scaled" src="./other.html?scaled" style="width: 100%; height: 100%; border: 0"></iframe>
</div>

Interactions with elements within that frame fail, e.g. don't happen. I assume it is because the driver fails to properly calculate the coordinates. Please find a great reproducible example here: https://github.com/hi-ogawa/reproductions/tree/main/webdriverio-css-transform created by a WebdriverIO community member.

see also https://github.com/webdriverio/webdriverio/issues/13724

whimboo commented 4 weeks ago

I thought that we already had such an issue filed but I cannot find one.

See https://github.com/w3c/webdriver-bidi/issues/787 as well for WebDriver BiDi.