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.
setValue in textbox not working in FireFox 5
My team has developed an application that executes systems test using Sahi 3.5 (build 2011-05-25). When running our tests, they fail when executing the following command:
self.browser.textbox("textbox_id").setValue("test")
Instead of placing the text 'test' in the textbox, the textbox gets cleared.
We experimented with the Sahi controller to reproduce the behavior. When executing the following command in the controller, the same behavior is seen:
_setValue(_textbox("textbox_id"), "test");
Note that when the textbox is manually selected first, the setValue works correctly.
We are running FireFox 5.0 on Windows XP. The issue did not occur in FireFox 4. It also doesn't occur in IE 7 and 8.
Is this a known FireFox 5.0 issue? Is there a workaround for this issue?
self.browser.textbox("textbox_id").setValue("test")
Instead of placing the text 'test' in the textbox, the textbox gets cleared.
We experimented with the Sahi controller to reproduce the behavior. When executing the following command in the controller, the same behavior is seen:
_setValue(_textbox("textbox_id"), "test");
Note that when the textbox is manually selected first, the setValue works correctly.
We are running FireFox 5.0 on Windows XP. The issue did not occur in FireFox 4. It also doesn't occur in IE 7 and 8.
Is this a known FireFox 5.0 issue? Is there a workaround for this issue?
This discussion has been closed.
Comments
This is a known issue, and we have fixed this. We are releasing a new build in a day or two.
Meanwhile, you can do this to fix it.
Open sahi/htdocs/spr/concat.js
Search for
and replace it with
Restart Sahi, clear browser cache, and your problem should be fixed.
(The problem was because we had hardcoded for FF4, which we have removed in the newer release)
Regards,
Narayan
Regards,
ShadowLord