This question is locked. New answers and comments are not allowed.
I have a .aspx page with 4 panels which works a wizard, I mean that in each step, only one panel is visible in browser.
I developed an UI test using Telerik framework, it could only find the control in first step, and when the second panel is shown
,test methods failed to find controls and throw exception. see below code which is simplified version of my page
panel are placed in a update panel
structure of page is something like this:
<asp:updatepanel>
<contentTemplate>
<asp:Panle Id="panel1></asp:Panel> //step 1
<asp:Panle Id="panel2></asp:Panel> //step 2
<asp:Panle Id="panel3></asp:Panel>//step 3
<asp:Panle Id="panel4></asp:Panel> //step 4
<contentTemplate>
</asp:updatepanel>
Thnaks
Behtash Moradi
I developed an UI test using Telerik framework, it could only find the control in first step, and when the second panel is shown
,test methods failed to find controls and throw exception. see below code which is simplified version of my page
ActiveBrowser.NavigateTo("http://localhost:34126/");<
br
> <
br
> Thread.Sleep(1000);<
br
><
br
><
span
class
=
"Apple-tab-span"
style
=
"white-space:pre"
> </
span
>// step #1 , a panel with only one drop down list & next button<
br
> Find.ById<
HtmlSelect
>("cmbxList").SelectByIndex(1); // successfully find drop down list and set selected item,<
br
> Find.ById<
HtmlButton
>("lnkNext").Click(); // goes to step #2 <
br
><
br
><
span
class
=
"Apple-tab-span"
style
=
"white-space:pre"
> </
span
>// step #2 a panel with some input controld<
br
> Find.ById<
HtmlInputControl
>("txtEmailTitle").Value = "behtash"; // failed<
br
> Find.ById<
HtmlInputControl
>("txtReplyAddress").Value = "info@ctx.com";
structure of page is something like this:
<asp:updatepanel>
<contentTemplate>
<asp:Panle Id="panel1></asp:Panel> //step 1
<asp:Panle Id="panel2></asp:Panel> //step 2
<asp:Panle Id="panel3></asp:Panel>//step 3
<asp:Panle Id="panel4></asp:Panel> //step 4
<contentTemplate>
</asp:updatepanel>
Thnaks
Behtash Moradi