Sahi Documentation

Issues in Safari browser

Script not executing on Safari browser

symptom When script execution is configured for Safari browser, the script executes on another browser (e.g Chrome, Firefox, etc.).
resolution Perform following steps:
  1. Launch Safari browser.
  2. Click on Safari at top menu bar.
  3. Go to Preferences -> General.
  4. Click on Set Default... next to Safari is not your default web browser.

Elements not getting identified on Safari browser

For identifying elements on the Safari browser, Sahi needs the browser window to be in focus while hovering over the element to be identified. Suggested way of doing this would be my minimizing the browser window and placing the window and the controller side by side as shown below. Now click on the browser window, before trying to identify an element.

Firefox Redirect Loop

Playback fails on Safari browser

symptom Playback fails on Safari browser after 90 seconds.
resolution Enable cross-site cookie access as follows :
  1. Launch Safari browser.
  2. Click on Safari at top menu bar.
  3. Go to Preferences -> Privacy.
  4. Untick 'Prevent cross-site tracking' next to Website tracking.

Extra tabs except Start URL open in Safari browser

symptom When script playback starts, Safari browser launches with extra tabs which are opened in previous run of script .
resolution Perform following steps to configure Safari preferences:
  1. Close Sahi.
  2. Quit Safari.
  3. Open Terminal.
  4. Run following command in Terminal:
    defaults write com.apple.safari ApplePersistenceIgnoreState YES
  5. Start Sahi.