You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When my windows DPI is 100%, I could rightClick success, while it failed when my windows DPI is 150%, it seems the "rightClick" action worked on the false (x, y)
my code: self.driver.execute_script('windows: click', {"elementId": self.wait_locator(loc).id, "button": "right"});
at the same time, I have tried other "execute_script" method, including: windows: scroll, windows: hover, "windows: click".
All these method have this issue
DPI Setting: Setting > System > Display > Scale
The text was updated successfully, but these errors were encountered:
// coordinates relative to the element's left top corner have been provided
absoluteX+=left;
absoluteY+=top;
If you have an idea to get a proper coordinate programmatically, we could add such a calculation in this driver layer from the WAD response.
Not the element id, but for example x/y addresses:
The screen scale (if customized) is not taken into consideration while calculating the coordinate.
When my windows DPI is 100%, I could rightClick success, while it failed when my windows DPI is 150%, it seems the "rightClick" action worked on the false (x, y)
my code:
self.driver.execute_script('windows: click', {"elementId": self.wait_locator(loc).id, "button": "right"})
;at the same time, I have tried other "execute_script" method, including: windows: scroll, windows: hover, "windows: click".
All these method have this issue
DPI Setting: Setting > System > Display > Scale
The text was updated successfully, but these errors were encountered: