Skip to content
Get Free Trial

Issues in 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

Section titled “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

Symptom: Test runs fail 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

Section titled “Extra tabs except Start URL open in Safari browser”

Symptom: When a script run 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.