18 January 2026:


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.

input=number Sahi is not able to find field that is set to type number

wtwhitakerwtwhitaker Members
edited November -1 in Sahi - Open Source
Our application runs on IPads. We set some of the fields to input=number so the number keyboard appears when users click on filed.

Below I have an example of the text type input that works fine with sahi.

<input type="text" size="20" autocomplete="off" id="ext-gen47" name="estimateNumber"
class=" x-form-text x-form-field x-form-invalid" style="width: 52px; ">

sahi returns a handle like "_textbox("estimateNumber")"

Howerver, below is an input box that is a number type input box

<input type="number" size="20" autocomplete="off" id="ext-gen43" name="agentNumber"
class=" x-form-number x-form-field x-form-num-field x-form-invalid " style="width: 46px; ">

shai does not return a handle to use.
_textbox("agentNumber")" does not work as well

Comments

  • narayannarayan Administrators
    Hi,

    We will send you a build with support for HTML 5 elements. Give us a couple of days.

    Regards,
    Narayan
  • Did a new build get created to fix this issue?
  • narayannarayan Administrators
    Yes wtwhitaker, we will be sending you a link before tomorrow.
  • Narayan,

    This worked great.
    Thank you

    Can I request that this get put into the regular build for Sahi?

    Thanks
    again
    Walter
  • narayannarayan Administrators
    Hi Walter,

    This is part of the same code base. The next release will have these APIs available.

    Regards,
    Narayan
  • tsivatsiva Members
    Hello Narayan,
    I am also having similar issues in my application while recording using Sahi. i was recording and replaying scripts on the application that uses HTML5 and unable to recognize the value from _textbox(" x-form-text x-form-field "). could you please send me the new build and instructions to install, so that some of my issues also might go away? I really appreciate if you could do me the favor.
  • Hi,

    I am also having similar issues in my application while recording using Sahi. i was recording and replaying scripts on the application that uses HTML5 and unable to recognize the value from
    below is an input box that is a number type input box,
    wtwhitaker wrote:
    <input type="number" size="20" autocomplete="off" id="ext-gen43" name="agentNumber"
    class=" x-form-number x-form-field x-form-num-field x-form-invalid " style="width: 46px; ">
    shai does not return a handle to use.
    _textbox("agentNumber")" does not work as well

    Could you please send me the new build and instructions to install, so that some of my issues also might go away? I really appreciate if you could do me the favor.

    Thanks,
    Best Regards.
Sign In or Register to comment.