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

Support error handling by replacing `!`/`fatalError` with `throws` and optionals #44

Closed tristanlabelle closed 1 year ago

tristanlabelle commented 1 year ago

The codebase currently relies a lot on ! and fatalErrors. It should support handling errors by exposing them through throws or optionals.

jeffdav commented 1 year ago

First shot at this in https://github.com/thebrowsercompany/webdriver-swift/pull/54, awaiting feedback.