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.

Firefox proxy

vikkyjainvikkyjain Members
edited November -1 in Sahi - Open Source
Hi ,


I am executing following command

java -cp %SAHIBATCH% "C:\automation\scripts\nic_vpd_info.sah" %FIREFOX% %URL% default localhost 9999 1 firefox.exe

I want to know why we put localhost and 9999 as argument in this command.
if i remove it my test wont execute

Thanks
vikky

Comments

  • SumitraSumitra Members
    Hi vikkyjain,

    Sahi uses a HTTP proxy to inject javascript into webpages. The injected scripts then use code to identify DOM elements and simulate actions like click, hover etc.

    The proxy server is running on a port (9999) and host(localhost). Your browser's proxy settings should be configured to listen at this port for the javascript to be injected. This is how Sahi works.

    Keeping this in mind, the command will tell Sahi to launch a pre-configured browser with these proxy settings and execute a sahi script specified.

    Regards
    Sumitra
Sign In or Register to comment.