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.

The Recorded Phone # not properly entered on `Play Back`

RamnathRamnath Members
edited November -1 in Sahi - Open Source
Hi,

We faced one issue on Playing back the script.

We have a Phone Number field in our application. When we enter the Phone number as 5555555555, it will be formatted as (555)555-5555 (while typing the value).

This got recorded correctly --> _setValue(_textbox("phoneNum"), "(555)555-5555");

But on Playing back, the Phone Number value is getting entered as --> (555)5)5-555-5555 (Note the format change)

Because of this we are not able to proceed with the `Play Back` (validation is caught due to incorrrect format)

Can anyone suggest, how to overcome this ?
Tagged:

Comments

  • narayannarayan Administrators
    Ramnath,

    What happens in your app if you manually type (555)555-5555?
    Sahi should simulate that behaviour.

    Try _setValue(_textbox("phoneNum"), "5555555555"); also,
    as that is what you have entered.

    Could you also tell us which browser you are using?

    Regards,
    Narayan
  • Hi Narayan,

    Thank you for your response.

    In our app, if we type 55555555555, ot will be formatted as "(555)555-5555", and it is properly recorded. But while playing back, it is not getting inserted as expected ( getting inserted as (555)5)5-555-5555 )

    In fact we tried _setValue(_textbox("phoneNum"), "5555555555");

    But Still it is not woking. We are using IE 7 browser.

    It would be great if you could suggest us a solution for this.

    Thanks,
    Ramnath J
Sign In or Register to comment.