thebrowsercompany / swift-webdriver

A Swift library for communicating with WebDriver (Appium/WinAppDriver) endpoints
BSD 3-Clause "New" or "Revised" License
105 stars 3 forks source link

Consider adding built-in support for DPI scaling. #57

Closed jeffdav closed 1 year ago

jeffdav commented 1 year ago

Arc wrote this extension method for Element, and we should consider just doing this for them:

    func moveTo(logicalX: Int, logicalY: Int) throws {
        let x = Float(logicalX) * dpiScale
        let y = Float(logicalY) * dpiScale

        try moveTo(xOffset: Int(x), yOffset: Int(y))
    }
tristanlabelle commented 1 year ago

I think we should let webdriver-swift be only a UI automation framework and build a higher level UI testing framework on top for features like this

tristanlabelle commented 1 year ago

Closing this. The plan is be to stick to representing the webdriver API in webdriver-swift, and to implement DPI and other more UI testing specific features in an XCUITest reimplementation built on top of this library.