I am setting up Selenium testing for Safari 8 on Mac 10. I need to install our Safari driver beforehand, and it needs to happen silently and without any user prompting.
And also I manually install the safari driver, I saw below files would be changed:
after install, 3 files in ~/Library/preference has been changed.
after install, 7 files in ~/Library/Safari file has been changed
after install, login.keychain in ~/Library/Keychains file has been changed
From previous posts, I've tried these:
Silent install for Safari extension on Mac without any user prompting. I found this works in that it loads the browser with the extension:
open -a Safari SafariDriver.safariextz<br>
But it leaves the browser opened with a prompt to the user: "Are you sure you want to install the extension?"
Then I follow the first answer trying to do these: "install the extension into
~/Library/Safari/Extensions
and update~/Library/Safari/Extensions/Extensions.plist
". Here I copy theSafariDriver.safariextz
to this path:~/Library/Safari/Extensions
. Then I could not find theExtensions.plist
in this path~/Library/Safari/Extensions/
. And I also could not find safari driver related change item in these files~/Library/preference/com.apple.Safari.plist
orcom.apple.Safari.Extensions.plist
I am unable to install my extension to safari from commandline (OS X 10.5.8 Safari 5+). I use this command from article to try, still with the user prompt:
sudo /Applications/Safari.app/Contents/MacOS/safari /tmp/my-product/my-extension.safariextz<br><br>
Could someone answer my questions here with more detail information, thanks in advance.