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.

Java example not working

cblincblin Members
edited November -1 in Sahi - Open Source
I downloaded sahi-20100610.

I try to run the sample in sample_java_project.

With IE8 and FF3.5, the browser opens, navigates to google.fr (I changed the url to avoid the redirection from google.com) but then it hangs forever, never going to the line browser.textbox("q").setValue("sahi forums");

Thanks for any help,

Comments

  • narayannarayan Administrators
    Hi,

    You will need to set the proxy on the browser to localhost 9999 on IE.

    It should work automatically for firefox, but it depends on what profile you used. Usable profiles for firefox are created in sahi/userdata/browser/ff/profiles/sahi0 (The path used in the example would be different.) You can use "-profile $userDir/browser/ff/profiles/sahi0 -no-remote" if you do not want to hardcode the path.

    Regards,
    Narayan
  • cblincblin Members
    I think that the proxy is set otherwise the broser.navigateTo("www.ggogle.fr") would have fail no ?
  • narayannarayan Administrators
    No, the browser would hit the website directly, and since the request/response did not go through the Sahi proxy, Sahi will not be able to control the browser.
Sign In or Register to comment.