18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
script doesnt work in Sahi for Safari browser
Hi Sumitra,
i am using the latest version of Sahi from 19.07.2011.
When i start the script, it only opens the new url and nothing then. And nothing is recorded anymore.
I tried it with firefox and everything was working fine. But in Safari it just open the new page and cannot record anything.
Ctrl+Hover - it is not possible to identify any elements. Only in firefox.
thanks.
Regards,
Pietro
i am using the latest version of Sahi from 19.07.2011.
When i start the script, it only opens the new url and nothing then. And nothing is recorded anymore.
I tried it with firefox and everything was working fine. But in Safari it just open the new page and cannot record anything.
Ctrl+Hover - it is not possible to identify any elements. Only in firefox.
thanks.
Regards,
Pietro
This discussion has been closed.
Comments
Could you please check if Ctrl+Hover on an element on IE works fine?
Also, do the following steps:
Do a “view source” on the page and search for “document.domain”. You may see something like:
document.domain = "maindomain.com"
This is done by the application developer, so that two frames/iframes from domains like a.maindomain.com and b.maindomain.com can communicate with each other via javascript.
To make Sahi work correctly with this, open sahi/userdata/config/domainfix.txt and add
*.maindomain.com maindomain.com
Save, restart Sahi.
Regards
Sumitra
another problem is that i am using IE 9 and when i start it from Sahi, browser is opened but this page by Sahi could not be opened. I didnt change anything.
And thanks, i will try it and hopefully this will work.
Thanks.
Regards,
Pietro
so i try to look for document.domain but there was nothing in the source page. I also added that *.maindomain.com maindomain.com and restart the Sahi but it is not working anyway. Still i am not albe to ctrl+hover over the any element. Do you have any idea ?
Thanks a lot.
Regards
Pietro
Could you please delete the cache and check if it works fine.
Also, can you post the url of your application?
Regards
Sumitra
url will not work for you because it is an internal web page which i am testing.
But thanks a lot for your help, finally it is now working with RobotFramework.
Best regards,
Pietro
If you are using Safari 5.0 or lesser, you need to use the machine name in the URL instead of localhost
If you are using Safari 5.1 or later, neither localhost nor machine name will work. In this case, you need to modify your C:\windows\system32\drivers\etc\host and add
127.0.0.1 my.localmachine.com
# or some such name
(This basically creates a dummy host name pointing to your localhost, and fools Safari into believing that this is not localhost.)
Then access your application via http://my.localmachine.com/ Then Safari will be able to automate it.
Regards,
Narayan