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.
Script gets timeout, cannot bring up controller window
Hi
I am using SAHI to test our web application - unfortunately it does not seem to be working at the moment.
When I launch a simple test script, it fails at the first assertion (it times out because it seems to be unable to find the text I'm looking for).
Other symptoms are that, when I navigate to the webapp using the server's hostname, I am unable to open the controller window with Ctrl+Alt+Doubleclick. However, when I use the IP address, I can open the controller window.
If I first open up the controller at another site, then navigate to my webapp, holding down Ctrl and hovering over the webapp's elements does not auto-fill the text boxes in the controller the way it normally does.
Using either the hostname or IP address in the URL, running the script still fails with a timeout.
When the script fails, it gives me the following output on the proxy commandline:
Of course, the text "Welcome, please login" does appear on the webapp, and if I view the source, it's quite visible in the html as well.
I am using SAHI to test our web application - unfortunately it does not seem to be working at the moment.
When I launch a simple test script, it fails at the first assertion (it times out because it seems to be unable to find the text I'm looking for).
Other symptoms are that, when I navigate to the webapp using the server's hostname, I am unable to open the controller window with Ctrl+Alt+Doubleclick. However, when I use the IP address, I can open the controller window.
If I first open up the controller at another site, then navigate to my webapp, holding down Ctrl and hovering over the webapp's elements does not auto-fill the text boxes in the controller the way it normally does.
Using either the hostname or IP address in the URL, running the script still fails with a timeout.
When the script fails, it gives me the following output on the proxy commandline:
#### Running Script: C:\ROBIN\SAHI\userdata\scripts\3CFECheck.sah
Jul 15, 2010 10:56:55 AM net.sf.sahi.test.ProcessHelper execute
INFO: <<< Deleted to avoid low postcount message >>>
Jul 15, 2010 10:56:56 AM net.sf.sahi.test.ProcessHelper$PIDGatherer run
INFO: PIDs: [3296]; 1031 ms
Rhino lib:Step >_sahi._assertExists(_sahi._div("Welcome, please login"));< did n
ot complete in 150 seconds.
Killing C:\ROBIN\SAHI\userdata\scripts\3CFECheck.sah
Jul 15, 2010 11:00:02 AM net.sf.sahi.test.ProcessHelper kill
INFO: Kill: [3296]
Of course, the text "Welcome, please login" does appear on the webapp, and if I view the source, it's quite visible in the html as well.
Comments
- Windows Server 2003 on an ESX VM,
- IE 7
- SAHI Build: 2010-06-11
I tried getting Sahi working on 2003 and never had success with it. Sahi does not work properly on 2003 and as a continuous build process we used Win XP to run Sahi tests.
Narayan - I remember we exchanged couple of emails last year about this. Have you ever find any solution for making Sahi work on Win Server 2003
I should probably also mention that there are some Javascript errors on the page... yet it seems to work OK with Firefox (I need to confirm with Firefox).
Is it possible that if IE gets a Javascript error, SAHI will stop working?
Your symptoms seem to suggest that Sahi is not injecting its javascript for the specified hostname. Could you check that the proxy settings are not bypassed for that particular hostname on IE?
When you move from one domain to another, Sahi's Controller may still remain associated with the older domain. You would need to close and reopen the Controller in that case.
Sumeet, I remember us discussing this, but am not sure what the problem was. I have run Sahi on 2003 successfully. It throws up a lot of prompts which we suppressed with some permission settings and then things are fine. One other thing was allowing third party cookies which is allowed by default on IE and FF on most windows OSes.
Johan, if it still does not work for you, drop an email to support@sahi.co.in and we can do a desktop sharing session to see what the problem is.
Regards,
Narayan