18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
Not proceeding after navigating to URL.
SantoshSarma
Members
I'm a newbie in Sahi. I'm trying to execute java sample project given with Sahi- Open source.
Below method is executing like charm
public void testSahiDemoSite(){
browser.navigateTo("http://sahi.co.in/demo/training/"
;
browser.textbox("user").setValue("test");
browser.password("password").setValue("secret");
browser.submit("Login").click();
browser.textbox("q").setValue("2");
browser.textbox("q[1]").setValue("9");
browser.textbox("q[2]").setValue("4");
browser.button("Add").click();
System.out.println(":: browser.textbox(\"total\").value()=" + browser.textbox("total").value());
}
where as below method is not proceeding after navigating to google url.
public void testGoogle() throws ExecutionException{
browser.navigateTo("http://www.google.com"
;
System.out.println("after navigation");
browser.textbox("q").setValue("sahi forums");
browser.submit("Google Search").click();
browser.waitFor(1000);
browser.link("Forums - Sahi - Web Automation and Test Tool").click();
browser.link("Login").click();
System.out.println(":: browser.textbox(\"req_username\").exists() = " + browser.textbox("req_username").exists());
}
It is not even printing the message (after navigation) which is in second line. It is waiting infinitely.
What might be the problem?
Is there any proxy related changes do I need to do to access other URLs?
Am I missing something very basic?
Please help me in this regard.
Thanks,
SantoshSarma J V
Below method is executing like charm
public void testSahiDemoSite(){
browser.navigateTo("http://sahi.co.in/demo/training/"
browser.textbox("user").setValue("test");
browser.password("password").setValue("secret");
browser.submit("Login").click();
browser.textbox("q").setValue("2");
browser.textbox("q[1]").setValue("9");
browser.textbox("q[2]").setValue("4");
browser.button("Add").click();
System.out.println(":: browser.textbox(\"total\").value()=" + browser.textbox("total").value());
}
where as below method is not proceeding after navigating to google url.
public void testGoogle() throws ExecutionException{
browser.navigateTo("http://www.google.com"
System.out.println("after navigation");
browser.textbox("q").setValue("sahi forums");
browser.submit("Google Search").click();
browser.waitFor(1000);
browser.link("Forums - Sahi - Web Automation and Test Tool").click();
browser.link("Login").click();
System.out.println(":: browser.textbox(\"req_username\").exists() = " + browser.textbox("req_username").exists());
}
It is not even printing the message (after navigation) which is in second line. It is waiting infinitely.
What might be the problem?
Is there any proxy related changes do I need to do to access other URLs?
Am I missing something very basic?
Please help me in this regard.
Thanks,
SantoshSarma J V
Answers