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 ---
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 ---