SetText issue in Playback

2 posts, 0 answers
  1. Bhaskar
    Bhaskar avatar
    4 posts
    Member since:
    Dec 2012

    Posted 22 Jan 2013 Link to this post

    Hi,

      In my form I have a mandatory field. I am entering the text into the field and saving my form while recording.

    But while playback, text is being entered into the text box but  on-click of "save" an validation message is shown saying field shouldn't be empty.

    But if I set "SimulateRealTyping" to true then it is working. Is there any way or work around where we can execute without simulating real typing?

    Here is the code :
    I used both the codes but none is working.
    1. Actions.SetText(Pages.FaxNewMicrosoft0.FrameContentIFrame.SubjectText, "Test Fax");
    2.Pages.FaxNewMicrosoft0.FrameContentIFrame.SubjectText.Text="Test Fax";


    Thanks
    Bhaskar
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 22 Jan 2013 Link to this post

    Hello Bhaskar,

    Just out of curiosity, is there a good reason why you don't want to use the SimulateRealTyping property? I'm asking you because it seems that there is an event attached to that TextBox control that needs to be triggered and the best and easiest way to do this is by turning on the SimulateRealTyping. The other option is to trigger this event using code as described in this article.

    Regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top