Telerik Forums
Test Studio Forum
3 answers
221 views
Hi Telerik Team,

I have sceanrio where the controls in page are dynamic & those controls are in table of the Web page. I have used the below code snippet for identfying objects. But  i am having a problem of identfying object because the "id" we are using for identifying object is changing dynamically. For Example id is "attribute_2_3003_3128" when we scripted, but it is change now to atrribute_4_3003_3128. Every time the single digit number in between is changed. Rest of the ID remains same. Please let me know how can we solve this issue.

Browser

 

 

ie = Manager.ActiveBrowser;
FramesCollection f = ie.Frames;
Browser b = f.ById("RAD_SPLITTER_PANE_EXT_CONTENT_ContentRadPane");
HtmlTable mainTable = b.Find.ById<HtmlTable>("tblContainer");
HtmlTableRow tablerow = mainTable.Find.ById<HtmlTableRow>("tblRel");
HtmlTable table = tablerow.Find.ById<HtmlTable>("tblmain");
int count = table.BodyRows.Count;
string proddes = ((string)(System.Convert.ChangeType(Data["ProductDesc"], typeof(string))));
string enabled = ((string)System.Convert.ChangeType(Data["Enabled"], typeof(string)));
for (int i=1; i < count - 1; i++){
HtmlTableRow row = table.BodyRows[i];
HtmlTableCell cell = row.Cells[1];
if (cell.InnerText.Equals("Product Description")){
HtmlTableCell cell1 = row.Cells[3];
/
/Regex regex = new Regex("""[?0-9]{1}");
//Console.WriteLine(regex.ToString());
//Console.ReadLine();
HtmlInputText text = cell1.Find.ById<HtmlInputText>("attribute_2_3003_3128"

);
text.Text = proddes;
}

 

 



Regards,
Kalyan Uppalapati
Riversand Technologies.
Stoich
Telerik team
 answered on 14 Feb 2011
1 answer
111 views
Hi

I have problem when i add updatecontrol into page

Server Error in '/' Application.

A control with ID 'g_b8df8590_3aee_4380_801b_65cf48a32c75$Search' could not be found for the trigger in UpdatePanel 'g_b8df8590_3aee_4380_801b_65cf48a32c75$tblLayoutPanel'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: A control with ID 'g_b8df8590_3aee_4380_801b_65cf48a32c75$Search' could not be found for the trigger in UpdatePanel 'g_b8df8590_3aee_4380_801b_65cf48a32c75$tblLayoutPanel'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: A control with ID 'g_b8df8590_3aee_4380_801b_65cf48a32c75$Search' could not be found for the trigger in UpdatePanel 'g_b8df8590_3aee_4380_801b_65cf48a32c75$tblLayoutPanel'.]
   System.Web.UI.UpdatePanelControlTrigger.FindTargetControl(Boolean searchNamingContainers) +315
   System.Web.UI.AsyncPostBackTrigger.Initialize() +26
   System.Web.UI.UpdatePanelTriggerCollection.Initialize() +65
   System.Web.UI.UpdatePanel.Initialize() +37
   System.Web.UI.UpdatePanel.OnLoad(EventArgs e) +51
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +318
   System.Web.UI.ControlCollection.Add(Control child) +146
   Telerik.Web.UI.RadAjaxControl.CreateUpdatePanel(Control initiator, String eventName, Control updated, UpdatePanelRenderMode panelRenderMode) +1161
   Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1526
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +2117788
   System.Web.UI.Control.PreRenderRecursiveInternal() +86
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
Pavlina
Telerik team
 answered on 14 Feb 2011
1 answer
65 views

Friends,

When you post a new thread please write relevant title, so that we all can easily find out what was the issue and we can relate to our scenarios.

Thanks,

Madhu.

ME
Top achievements
Rank 1
 answered on 11 Feb 2011
3 answers
124 views
Hi,

I have problem, i create RadGrid by code and registry event ItemDataBound,

 void dataGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
           if (e.Item is GridFooterItem)
            {
                GridFooterItem footer = (GridFooterItem)e.Item;
              
                    string interName = "name";
                    footer[interName].Controls.Add(new LiteralControl("<b>" + GetLabel("Goto", "Go to") + " </b>"));
                    LinkButton lbtIndex = new LinkButton();
                    lbtIndex .Text ="1";
                    lbtIndex .ID = "lbl1";
                    lbtIndex .Click += new EventHandler(lbtIndex _click);
                    footer[interName].Controls.Add(lbtIndex );
              
            }
        }
        void lbtIndex _click(object obj, EventArgs e)
        {
         //to do
       }

But when i click LinkButton 1 (lbtIndex _click), the event of button dont fire.


 
Daniel
Telerik team
 answered on 11 Feb 2011
6 answers
125 views

Hi,

I'm using QA Edition Q3 release. I have a problem with If...ELSE condition. If you see attached video file you will get an idea.

I'm expecting to work atleast ELSE part after I modified navigate URL?

Any ideas please?

Thanks,

Madhu Tekmal

Madhu
Top achievements
Rank 1
 answered on 10 Feb 2011
12 answers
220 views
HI,

Data binding work I have already done. I am unable to put the validation to know where the test fails.
For example.
I leave username field blank and put the correct password then when I click on login button then a pop up opens and says "Please enter username". Here comes the problem when I go back and see the step in telerik tool all are shown PASS but actually it should be failed. I run all the test cases of login through data binding but all shows PASS rather only with correct username and password test should be passed.
Hope you understand my problem.

Regards,
Nitin
Cody
Telerik team
 answered on 10 Feb 2011
13 answers
245 views
Hi Team,

The issue is, if I create .aii file with recorded step like navigate to google.com and clicking on different links.

Now if try to execute this .aii file, it is unable to launch the browser and thus unable to execute the .aii file.

P.S- 1. We are using WebUI QA Edition ( 2010.3 1213).
        2. We are using IE browser on Windows XP Pro. 

Reference .aii file attached : WebAiiTest2.zip

Regards,
Dev
(GHI Team)
Cody
Telerik team
 answered on 09 Feb 2011
2 answers
82 views
Hi.
I want to drag some item from a window and drop to another window.

Is it possible?
If it is, please tell me how..
Cody
Telerik team
 answered on 08 Feb 2011
1 answer
121 views
Good Morning,
I was wondering if you have a trial of the Web UI Run-time edition available for download?
Thanks,

Jeff Freeman
Daniel Levy
Telerik team
 answered on 08 Feb 2011
1 answer
61 views
HI
I am newly join web ui test studio in this to support to web ui test  studio as part visual studio its mandatory or not tell me you help full
Stoich
Telerik team
 answered on 08 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?