This is a migrated thread and some comments may be shown as answers.

SetText issue in Playback

1 Answer 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bhaskar
Top achievements
Rank 1
Bhaskar asked on 22 Jan 2013, 10:38 AM
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

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 22 Jan 2013, 04:19 PM
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
Tags
General Discussions
Asked by
Bhaskar
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or