Is it possible to automate the tests on a WebKit/WebView browser that is embedded in a Mac OS X desktop application, preferably using Selenium or some Mac-based tool like AppleScript or Automator?

I'm unable to figure out automating an embedded browser on Mac, though we have done it for a Windows/CEF combination.

  • The Wikipedia article Comparison of GUI testing tools may be a helpful reference. It lists a handful of tools capable of automating at the browser level or OS level. Note that this list is not specific to Selenium. – Taylor Edmiston Sep 19 '19 at 16:42

Sikuli can be an option:

Sikuli automates anything you see on the screen. It uses image recognition to identify and control GUI components. It is useful when there is no easy access to a GUI's internal or source code.

| improve this answer | |

Check if Squish tool can help you.

Squish is GUI automation framework they support macOS application with embedded WebKit.

| improve this answer | |
  • No Comment needed. Instead of adding single line answer, Please explain some more details how Squish tool can help us in embedded WebKit browser? Add reference Links, If you have. – Bharat Mane Jul 7 '17 at 4:44
  • Squish detects the HTML components inside an embedded WebView resp. WKWebView control. You can access the HTML objects and query their properties, as well as doing interactions on them (like clicking on a link or entering text into an <input> element). – ashcatch Feb 5 '18 at 12:20
  • More info on Squish (website, wiki): It is a long-standing commercial product made by a company called Froglogic. It supports property-based object identification and recording and playback using test scripts written in several common languages. It supports macOS, *nix, Windows, etc. – Taylor Edmiston Sep 19 '19 at 16:46
  • Squish also appears to be extremely expensive (over $1000 per user per year), and closed source, or at least I cannot seem to find the source available publicly anywhere. froglogic.com/squish/prices/named-user-licensing – Taylor Edmiston Sep 19 '19 at 16:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.