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.

toggling proxy on firefox

sahi_nelsonsahi_nelson Members
edited November -1 in Sahi - Open Source
I'm running a suite of script with apache ant and using firefox. I have the problem that firefox pop-emerge with the proxy of my company ..
There is a way to specify in the build.xml of ant, the Sahi proxy and port for all test firefox that emerge?

Comments

  • narayannarayan Administrators
    Hi Nelson,

    You should not need to specify the proxy for each of the profiles. The firefox profiles automatically have localhost 9999 configured. Could you specify the browser option that you use in the ant target?

    Regards,
    Narayan
  • I have the .xml this way
    <sahi suite="${sahidir}/userdata/scripts/verificar_permisos_por_roll.suite"
    browser="C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    baseurl="midirreccion"
    sahihost="localhost"
    sahiport="9999"
    failureproperty="sahi.failed"
    haltonfailure="false"
    browserprocessname="firefox.exe"
    threads="1"
    browseroption="-profile ${sahidir}/browser/ff/profiles/sahi$threadNo -no-remote"
    ><report type="html"/></sahi>

    something missing?
  • boopathiboopathi Members
    edited October 2010
    Hi Nelson,
    Change the browseroption as,

    browseroption ="-profile ${sahidir}/userdata/browser/ff/profiles/sahi$threadNo -no-remote"

    Regards,
    Boopathi M
Sign In or Register to comment.