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.

how to access web pages through sahi which lies outside the proxy

swastikaswastika Members
edited November -1 in Sahi - Open Source
hello, I am automating web application.Since our company have firewall so i am not able to open web pages lies out side my companies domain through sahi like google ,e-baking.
I have automated half of the application which lies in companies domain but scripting fails where my application is accesing net-baking application.
kindly can you give us solution to this.

Comments

  • narayannarayan Administrators
    Hi Swastika,

    Could you specify if you normally use a proxy server to access websites like google etc.?
    Before you changed the browser's proxy settings to use localhost and 9999, was there some other proxy host and port specified in those fields?

    If your initial settings were corporate_proxy.yourdomain.com and port 8080, open sahi/config/sahi.prioperties, look for a section
    # Use external proxy server for http
    ext.http.proxy.enable=false
    ext.http.proxy.host=localhost
    ext.http.proxy.port=808
    

    and modify it to be
    # Use external proxy server for http
    ext.http.proxy.enable=true
    ext.http.proxy.host=corporate_proxy.yourdomain.com
    ext.http.proxy.port=8080
    


    Restart Sahi, and check if you can now access the websites. Do the same for https in sahi.properties if you need access to https sites.

    Regards,
    Narayan
  • narayannarayan Administrators
    I am sorry folks,

    Make the change in

    sahi/userdata/config/userdata.prioperties

    instead of

    sahi/config/sahi.prioperties

    Regards,
    Narayan
Sign In or Register to comment.