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.
Cannot get _type to work
Hello... I'm using buld 2011-07-19 with IE8 on Windows 7 Pro. We have several numeric fields on our website that have the following validations:
1. Cannot enter alpha characters except b (for billions) and m (millions)
2. Cannot enter 'special' characters like !@#$
There is no error displayed in the UI to key on, otherwise I would have asserted on that.
When I try to use _type to insert one of the disallowed characters:
...nothing is entered as expected. However, when I try and use _type to insert a valid character or number, that doesn't insert anything either, so something else is going on here, right?
I've also tried _keyDown:
...with the same result.
When I use 'Evaluate expression' to perform these in the Sahi Controller, the response is 'undefined'.
If I use _keyPress or _setValue:
...the value is entered into the field, but this is not desirable since there is no UI validation/error that appears. (When the page is saved an error occurs but that's a different validation for the field type in the database.)
Any suggestions?
Thanks
1. Cannot enter alpha characters except b (for billions) and m (millions)
2. Cannot enter 'special' characters like !@#$
There is no error displayed in the UI to key on, otherwise I would have asserted on that.
When I try to use _type to insert one of the disallowed characters:
_popup("WindowName")._type(_textbox("FieldName"), "a");
...nothing is entered as expected. However, when I try and use _type to insert a valid character or number, that doesn't insert anything either, so something else is going on here, right?
I've also tried _keyDown:
_popup("WindowName")._keyDown(_textbox("FieldName"), 'a');
...with the same result.
When I use 'Evaluate expression' to perform these in the Sahi Controller, the response is 'undefined'.
If I use _keyPress or _setValue:
_popup("WindowName")._keyPress(_textbox("FieldName"), 'a');
-----
_popup("WindowName")._setValue(_textbox("FieldName"), "a");
...the value is entered into the field, but this is not desirable since there is no UI validation/error that appears. (When the page is saved an error occurs but that's a different validation for the field type in the database.)
Any suggestions?
Thanks