Limitations for Testing with Apple Safari

The following are the known limitations for testing with Apple Safari on a Mac:
  • The following classes, interfaces, methods, and properties are currently not supported when testing web applications with Apple Safari on a Mac:
    • BrowserApplication class.
      • clearCache method
      • closeOtherTabs method
      • closeTab method
      • existsTab method
      • getHorizontalScrollbar method
      • getNextCloseWindow method
      • getSelectedTab method
      • getSelectedTabIndex method
      • getSelectedTabName method
      • getTabCount method
      • getVerticalScrollbar method
      • isActive method
      • minimize method
      • openContextMenu method
      • openTab method
      • restore method
      • selectTab method
      • setActive method
      • windowState property
    • BrowserWindow class.
      • acceptAlert method
      • dismissAlert method
      • getAlertText method
      • isAlertPresent method
      • mouseMove method
      • pressKeys method
      • pressMouse method
      • releaseKeys method
      • releaseMouse method
    • IMoveable class.
      • getFocus method.
  • Silk4J does not support the CMD key for the typeKeys method.
  • Silk4J does not support testing Apache Flex.
  • Silk4J does not support testing iframes with a JavaScript source on Apple Safari.
  • To test secure web applications over HTTPS on Apple Safari, ensure that any required server certificates are trusted.
  • Silk4J does not provide native support for Apple Safari. You cannot test internal Apple Safari functionality. For example, in a test, you cannot change the currently displayed web page by adding text to the navigation bar. As a workaround, you can use API calls to navigate between web pages.
  • Silk4J does not support JavaScript dialog API functions for Apple Safari. As a workaround, you could patch such functions so that they are ignored. For additional information, see https://groups.google.com/forum/#!topic/selenium-developer-activity/qsovJw93g9c.
  • Silk4J does not support tabbing on Apple Safari.
  • To test a multi window application, disable the Apple Safari pup-up blocker. To do so, start Apple Safari and navigate to Safari Preferences > Security > Block pop-up window.
  • Silk4J does not support testing the dialog box for saving a password. To avoid this dialog box, start Apple Safari, navigate to Safari Preferences > AutoFill, and check the User names and passwords check box.
  • Silk4J does not support properties in XPath expressions for Apple Safari. Only attributes are supported in XPath expressions.
  • Silk4J does not support testing web applications which include a Content-Security-Policy HTTP header.
  • With Apple Safari 10.1, Silk4J does not support navigating back in the browser.
  • With Apple Safari 10.1, Silk4J does not support using control keys in the typeKeys method.
  • With Apple Safari 10.1, Silk4J only supports dom actions in Frames and IFrames.
  • With Apple Safari 10.1, Silk4J does not support navigating with Frames and IFrames.
  • With Apple Safari 10.1, Silk4J does not support direct scrolling during recording. As a workaround, you could use the executeJavaScript method.