18 January 2026:


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.

Is there any work around to make sahi work with some other web browser

gururajrgururajr Members
edited November -1 in Sahi - Open Source
Hi all,
I wanted to know whether there is any work around to make sahi work with my own web browser.

Comments

  • narayannarayan Administrators
    It should be possible to use Sahi for your own web browser, if it supports a proxy and has a javascript implementation which is compatible with firefox or ie. I guess the answer is as vague as your question is! :)
  • thanks narayan. but my browser uses the same settings as ie uses. if i configure the proxy server in IE even my browser will be having the same setting.

    I tried to open the sahi controller window manually by giving the url as www.google.com/_s_/spr/controller2.htm and tried to record a script but it throwed a script error saying "top.opener._sahi" is null or not an object.

    I am completely a new bee to this tool so please dont mind about vague questions. I really need your input on this.
  • narayannarayan Administrators
    No, don't navigate to controller2.htm.

    Just open your browser, check the proxy settings, and then navigate to google.com. Then do a view source of the page on the browser, and see if you see a line at the top like <script src='/_s_/spr/concat.js'></script>

    If it is there, you know that the proxy has injected the necessary code into the page. Now do a ctrl-alt-dblclick and see if the controller comes up.
    If it does not, check for any popup blockers. If still not coming up, check and report any js errors you see.

    -Narayan
  • Hi narayan,
    The sahi controller works fine with my browser if i open google.com or yahoo.com. But when i try to open the sahi controller on my application it throws the script error. Is there any issue if my application is using my own server.
  • narayannarayan Administrators
    Does your application use multiple domains in iframes? Sahi does not work for such sites. Why don't you first see if the app works on a standard browser and then narrow down the problem to see if it is your browser, your server or something else.

    There should be no problem even if you use your own server, except that on IE7, proxy settings don't work for localhost, and so you may have to use your machine name to access the website through Sahi.
  • Hi, i finally got it worked. thanks for all the suggestions. I wanted one more help if someone could give some tutorial to learn all the apis and features of sahi.
  • KalaKala Members
    Hi,

    I was unable to stop the recording in Sahi with the following error message. And no script was generated for it.
    "TypeError: window.top.opener._sahi is undefined"

    I tried closing the Sahi completely and started freshly all over again, but still ended up with same problem.Kindly help me out on this.
Sign In or Register to comment.