thebrowsercompany / swift-webdriver

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

Add WebDriver.isInconclusiveError to separate WinAppDriver error codes #147

Closed tristanlabelle closed 2 months ago

tristanlabelle commented 5 months ago

winAppDriver_elementNotInteractable is still defined in the WebDriver module instead of WinAppDriver. We could avoid this by adding open WebDriver.isInconclusiveError(_ error: WebDriverError) so that we can test for this constant in WinAppDriver.

See: https://github.com/thebrowsercompany/swift-webdriver/blob/c07d96823aa7c2e7eec7d8dbaed904b04d959cb7/Sources/WebDriver/ErrorResponse.swift#L38

tristanlabelle commented 2 months ago

Fixed in https://github.com/thebrowsercompany/swift-webdriver/pull/150