Skip to content

DPI compatibility issue when try method in "execute_script" #288

@pppppino

Description

@pppppino

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions