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.
buttons have no value in Internet Explorer
Hi!
While creating our tests with Sahi I had problems to test the scripts in Internet Explorer when they are created with Firefox. I found the problem in the detecting of our submit buttons.
Eg.
<button name="button" value="submit" class="consoleBtn" onclick="send('submit')" onmouseover="showObj('submit')" onmouseout="hideObj('submit')">
<img src="../gfx/submit_enabled.png">
</button>
In Firefox the Sahi detects the button with _submit("button") and the value submit. But Internet Explorer calls detects it only with _button("button") and no value.
It would be great if you could help me.
Best Regards
Chris
While creating our tests with Sahi I had problems to test the scripts in Internet Explorer when they are created with Firefox. I found the problem in the detecting of our submit buttons.
Eg.
<button name="button" value="submit" class="consoleBtn" onclick="send('submit')" onmouseover="showObj('submit')" onmouseout="hideObj('submit')">
<img src="../gfx/submit_enabled.png">
</button>
In Firefox the Sahi detects the button with _submit("button") and the value submit. But Internet Explorer calls detects it only with _button("button") and no value.
It would be great if you could help me.
Best Regards
Chris
Comments
If a "type" attribute is not specified on a button tag, FF assumes the type to be "submit", and IE assumes it to be "button". That is the cause of this problem.
Do the following to consistently record button tags as _button. (We will add this to the next release.)
1) Open sahi/htdocs/spr/concat.js
2) Search for
and change it to
3) Search for
and comment it
4) Search for
and comment it
5) Restart Sahi, clear browser cache, and try again.
Let us know if it works for you.
Regards,
Narayan
I changed the type of button to null. Now FF and IE detect them as _button("button") but only FF prints the value of the Button.
I tried to chance value: "sahiText" to value: "value" but in this case IE tells me that the value is the src to the image.
To comment the reset and submit lines won't work at all, because there is a button with type reset and one with type submit and sahi can't see them when the lines are commented.
Regards Chris
Will have a look at this and get back to you.
Regards,
Narayan