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:
- Launch Safari browser.
- Click on
Safari
at top menu bar. - Go to
Preferences -> General
. - Click on
Set Default...
next toSafari 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.Playback fails on Safari browser
symptom
Playback fails on Safari browser after 90 seconds.
resolution
Enable cross-site cookie access as follows :
- Launch Safari browser.
- Click on Safari at top menu bar.
- Go to Preferences -> Privacy.
- 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:
- Close Sahi.
- Quit Safari.
- Open Terminal.
- Run following command in Terminal:
defaults write com.apple.safari ApplePersistenceIgnoreState YES
- Start Sahi.