Telerik Forums
Test Studio Forum
5 answers
75 views
Hi

i have a test case where i need to set a date and time in a DateTime field (Rad control)

when i try to run the test it fails with the Log message (added to the end of this post).

what i can gather from the log is that something in get_culture() fails for some reason.
the object in the test states that culture is da-DK
and the Selected time format is DD-MM-YYY HH:MM

also the Element find logic is: "[id 'Contains' ctl18_timeView] AND [id 'Contains' ctl00] AND [tagname 'Exact' div]"

the Client and webpage is set to da-DK as culture or system language.


----- Log Message -----
ArtOfTest.Common.Design.Exceptions.ExecutionException: ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [$find(\'ctl00_m_g_0a5cf375_559d_4468_867e_757ee28215ec_ctl18_timeView_wrapper\').get_culture()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: TypeError: 'null' is null or not an object
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'$find(\'ctl00_m_g_0a5cf375_559d_4468_867e_757ee28215ec_ctl18_timeView_wrapper\').get_culture()',ClientId:'Client_a4d5e5d3-5f23-44cc-94ee-a67dc39369a1',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [$find(\'ctl00_m_g_0a5cf375_559d_4468_867e_757ee28215ec_ctl18_timeView_wrapper\').get_culture()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: TypeError: 'null' is null or not an object
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
 ---> ArtOfTest.WebAii.Exceptions.ExecuteCommandException
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.InvokeScript(String script)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.InvokeScript(String script)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.GetValue[T](String propertyName, T defaultValue)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.CallMethod[T](String methodCall, T defaultValue)
   at Telerik.WebAii.Controls.Html.RadTimeView.get_Culture()
   at Telerik.WebAii.Controls.Html.RadTimeView.SelectTime(DateTime selectedTime)
   at Telerik.WebAii.Design.Translators.Html.Calendar.TimeViewSelectionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
   --- End of inner exception stack trace ---
Benjamin
Top achievements
Rank 1
 answered on 17 Feb 2011
3 answers
217 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
100 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
62 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
115 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
118 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
215 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
232 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
80 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
110 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?