[iOS]WebDriver for Safari in iOS 13, finally

WebDriver is Coming to Safari in iOS 13 has been announced, and finally it supports iOS!!

Currently, ios_webkit_debug_prozy is the only way to automate Safari browser on iOS. Appium also use it to handle Safari for iOS devices. The library has been maintained by Google.

I believe many developers has hoped to support such automation feature by Apple, such as XCTest. Of course, me, too.

From iOS 13, we can use it, yey.

Chrome Driver also behaves differently between Web Browser and Android. It is also one concern in the Safaridriver, I have tho.

Below is the CLI. We should enable first with β€”enable flag.

$ safaridriver
 Could not start server: must specify at least one configuration argument.
 Usage: safaridriver [options]
-h, --help   Prints out this usage information.
--version    Prints out version information and exits.
-p, --port   Port number the driver should use. If the server
             is already running, the port cannot be changed.
             If port 0 is specified, a default port will be
             used.
--enable     Applies configuration changes so that subsequent 
             WebDriver sessions will run without further
             authentication.
--diagnose   Causes safaridriver to log diagnostic information 
             for all sessions hosted by this instance.
             See the safaridriver(1) man page for more details
             about diagnostic logging.

Otherwise, the news was very excited one πŸ™‚

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.