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.
Junit TC running only on firefox.
Hi..
I'm new using Sahi and I need some help with this...
I'm creating Scripts using eclipse and them are running perfectly on firefox, but when I tried to run them with another browser (chrome, ie8, safari) I experienced different issues:
IE 8.0.7601.17514 = My code starts sahi and the main page is open but it does not navigate to the desired url.
Google Chrome 16.0.912.77 m: The code starts sahi and navigate to the desired URL but when the code should write the username and password to get access it doesn't do anything, Eclipse doesn't display any error and the TC is marked as running..
Safari 5.0-7533.16: Same issue as Google Chrome
This is my code
I hope you can help me with that....
Thanks in advance...
Regards...
I'm new using Sahi and I need some help with this...
I'm creating Scripts using eclipse and them are running perfectly on firefox, but when I tried to run them with another browser (chrome, ie8, safari) I experienced different issues:
IE 8.0.7601.17514 = My code starts sahi and the main page is open but it does not navigate to the desired url.
Google Chrome 16.0.912.77 m: The code starts sahi and navigate to the desired URL but when the code should write the username and password to get access it doesn't do anything, Eclipse doesn't display any error and the TC is marked as running..
Safari 5.0-7533.16: Same issue as Google Chrome
This is my code
public class Login extends TestCase {
public static Browser browser;
public void test1() throws ExecutionException, InterruptedException{
/** The information comes from the class "Settings.java" */
Settings SettingsObj = new Settings();
SettingsObj.setUp();
/** here starts the TestCase*/
browser = new Browser(Settings.sbrowser);
browser.open();
System.out.println(browser);
browser.navigateTo(Settings.server);
Thread.sleep(4000);
System.out.println("Page open");
System.out.println("Setting username and password"); /*Chrome and Safari stops here*/
browser.textbox("j_username").setValue(Settings.uname);
browser.password("j_password").setValue(Settings.pwd);
browser.submit("OK").click();
System.out.println("Logged in");
}
}
I hope you can help me with that....
Thanks in advance...
Regards...
Comments
Could you please check if you are getting any error message on Sahi console? If so then please post it here.
Also, if you are using Sahi OS version then make sure that you have accepted certificate for https site.
Follow the below links to accept the SSL certificates:
For IE : http://www.youtube.com/watch?v=qfjjVUGW56s
For Firefox: http://www.youtube.com/watch?v=mqHymw9j-Ng
Regards
Sumitra