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

Expanded WebDriverRequest protocol to better encapsulate request data for WinAppDriver commands #2

Closed christianfo closed 1 year ago

christianfo commented 1 year ago

This change expands the WebDriverRequest protocol following a design suggested by Tristan. The send<Request>(_:) function is being updated accordingly and moved to the WebDriver object where it makes more sense.

In addition, this change introduces an extension of the URLRequest foundation class to handle a simple web request and a utility function to build a URL from a its parts.

christianfo commented 1 year ago

Revisit send function behavior when there is no response data