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.
Failed to run the recorded script
Hi,
I am new buddy on this forum. I tried to execute the sample test on "Google Search" with the text "Sahi". I found the somewhat irrelevant search page. But I am able to see the result as "SUCCESS". In the search text it takes "SSaahhi". How to resolve the issue? I tried by clearing the cookies in my browser also still it persist.
Can anyone help me on this issue?
Thanks,
Balaji. R
I am new buddy on this forum. I tried to execute the sample test on "Google Search" with the text "Sahi". I found the somewhat irrelevant search page. But I am able to see the result as "SUCCESS". In the search text it takes "SSaahhi". How to resolve the issue? I tried by clearing the cookies in my browser also still it persist.
Can anyone help me on this issue?
Thanks,
Balaji. R
Comments
Could you tell us which browser you are using and also post the script you recorded?
Regards,
Narayan
I am working on Debian Linux environment. I tried to run in Firefox browser.
Recorded Script
_setValue(_textbox("q"), "Sahi");
_click(_cell("Search:the web pages from India"));
_click(_submit("Google Search"));
Please, let me know how to resolve the issue.
Thanks,
Balaji
This seems to work fine on Firefox 3.6 (though the second step was a little different. It had a space after the : (colon) )
What version of firefox are you using? And what version of Sahi?
Regards,
Narayan
I am running the script on FireFox 3.0 and Sahi version is (Build: 2010-03-02).
Can you help me on this regard?
Thanks,
Balaji.R
Can you specify what the UserAgent is on the Controller's info tab? If you could paste the whole content of the info tab, it will useful.
Regards,
Narayan
Thanks for your valuable support. Still I am replicate the same issue.
The details of the Info tab as follows:
Sahi
Version : V3
Build : 2010-03-02
Check for updates
Browser
UserAgent : Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091010 Iceweasel/3.0.6 (Debian-3.0.6-3)
Name : Netscape
Version : 5.0 (X11; en-US)Sahi
Version : V3
Build : 2010-03-02
Check for updates
Operating System
Name : Linux
Version : 2.6.26-2-686
Architecture : i386
Is process list available : true
Java
Java Installed Directory : /usr/jdk1.6.0_16/jre
JRE Version : 1.6.0_16
Is keytool available : true
Native XmlHTTPRequest : true
Is Java enabled : false
Is cookie enabled : true
Open sahi/spr/concat.js, search for
Sahi.prototype.isFF = function () {return /Firefox/.test(navigator.userAgent);};
and replace it with:
Sahi.prototype.isFF = function () {
return /Firefox/.test(navigator.userAgent) || /Mozilla/.test(navigator.userAgent);
};
Restart Sahi, clear browser cache, and try again.
Regards,
Narayan
Its working fine. Thanks for your reply.
Regards,
Balaji
The lines should ideally be:
Sahi.prototype.isFF3 = function () {return /Firefox\/3|Iceweasel\/3/.test(navigator.userAgent);};
Sahi.prototype.isFF = function () {return /Firefox|Iceweasel/.test(navigator.userAgent);};
They will be correctly available in the next build.
Regards,
Narayan