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.


Check if Squish tool can help you.

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

  • 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

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.

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.