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

Wait after clicking Button in Silverlight Page

2 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Amardeep
Top achievements
Rank 1
Amardeep asked on 13 Jan 2014, 05:45 PM
Hi ,

I am testing in Silverlight application where I click on a button after that it takes some time to load the page. And next step is to click on the combo box. But it tries to click the combo box while the page is loading. 

How can I wait until whole page is loaded and clicks the combo box after that:

Pages.PresentationClient0.SilverlightApp.SecurityTextblock.User.Click();  //Code for click the tab.

Pages.PresentationClient0.SilverlightApp.AccessGroupComboBoxRadcombobox.ToggleDropDown();//Code for opening the combo box.

Should there be any wait statement between the two?

Regards
A

2 Answers, 1 is accepted

Sort by
0
Madhu
Top achievements
Rank 1
answered on 15 Jan 2014, 07:48 PM
Amar,

Try to add a step (verify/wait until ComboBox enable) before click step. 

Thanks,
Madhu.
0
Velin Koychev
Telerik team
answered on 16 Jan 2014, 12:24 PM
@Madhu - Thank you for sharing this advice!

@Amardeep - Did you  try the suggestion of adding a wait step

Regards,
Velin Koychev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Amardeep
Top achievements
Rank 1
Answers by
Madhu
Top achievements
Rank 1
Velin Koychev
Telerik team
Share this question
or