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.
Set value (value=) doesn't work for textbox in IE9
OS: Windows 7 Enterprise Version 6.1 64-bit
Browser: IE9
Sahi OS Build: 2011-07-19
The script seemed to populate the value into textbox. However, after the record was saved and loaded again, all the values were gone (i.e. not saved). The same code worked in FF and Chrome. Here's the snippet of the code:
@browser.textbox(0).under(@browser.label("Estimated time")).value="123"
@browser.textbox(0).under(@browser.label("Estimated expenses")).value="456"
The value "123" was entered into the correct textbox on screen but was not actually saved upon look-up. When I did the steps manually, the value "123" was automatically changed to "123.00" after the focus was removed from the field.
To clarify, the problem seem to happen to any textbox that takes in numeric value.
Browser: IE9
Sahi OS Build: 2011-07-19
The script seemed to populate the value into textbox. However, after the record was saved and loaded again, all the values were gone (i.e. not saved). The same code worked in FF and Chrome. Here's the snippet of the code:
@browser.textbox(0).under(@browser.label("Estimated time")).value="123"
@browser.textbox(0).under(@browser.label("Estimated expenses")).value="456"
The value "123" was entered into the correct textbox on screen but was not actually saved upon look-up. When I did the steps manually, the value "123" was automatically changed to "123.00" after the focus was removed from the field.
To clarify, the problem seem to happen to any textbox that takes in numeric value.