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

Issues with Wait Functionality

1 Answer 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aarthi
Top achievements
Rank 1
Aarthi asked on 28 Apr 2010, 02:21 PM
Hi,

  The Purpose of Using Telerik for me is to Automate the Test (Record and replay it for capturing Bugs) .
  I am trying the wait functionlaity where in I enter values in a couple of text boxes and on tabbing out.. other fields are populated and only after those fields are populated I should click the Add button .. otherwise error message would popup saying that the auto populated fiends are blank.. when I do this manually its fine but when I record .. I guess it happens quick and hence every time I play back , the script fails  .... indicating that the autopopulated fields are blank.. hence to solve this I used wait feature.. I clicked the text box that was autopopulated and I right clicked for the bubble and I chose Quick Tasks and clicked " wait-textbox contains "name-jack"  " .When I replay the recorded scripts.. it waits for few seconds on the text box and then fails.. I am not sure how to increase the wait time here ..Could you helpe me with this.?

Thanks
Aarthi

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 28 Apr 2010, 04:01 PM
Hello Aarthi,

Thanks for taking the time to evaluate our products!

I suspect what the real problem is that you need to simulate real typing. Normally during recording we record a "Set Text" as directly setting the text of the DOM element in the browser. This normally works very reliably, except in cases where some backend JavaScript event handler needs to be called as a result of text being entered into an input field. Unfortunately setting the text directly in the DOM doesn't fire any JavaScript event handlers that some pages do use.

In your case it sounds like the JavaScript on your page isn't recognizing that text has been entered into your text input fields. Please try turning on "SimulateRealTyping" which you'll find in the Properties of the Set Text steps. Once set to True you can also adjust the simulated typing speed as well. The default is 150 milliseconds between characters.

I've attached a screenshot of the properties window of a Set Text step and cicled the properties you want to play with.

Let me know if I can be of any further assistance.

Greetings,
Cody
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Aarthi
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or