Hi ,
I have a rad window in my application and I am trying to get the height and width of the rad window.
When I try to get the the rad window with below mentioned code it throws be a exception.
return m_radWindow.Width;
return m_radWindow.Height;
However, I am able to re-size the rad window, but not able to get the width/height.
Exception detail:
*************************************************************************************************************************************************************************
ArtOfTest.WebAii.Exceptions.ExecuteCommandException was unhandled by user code
Message=ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [$find(\'FilingCabinet\').getBounds($find(\'{0}\').get_popupElement()).height] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: [object Error]
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(\'FilingCabinet\').getBounds($find(\'{0}\').get_popupElement()).height',ClientId:'Client_0096c116-6d01-455b-a291-5c81e1eb1606',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [$find(\'FilingCabinet\').getBounds($find(\'{0}\').get_popupElement()).height] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: [object Error]
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.
Source=ArtOfTest.WebAii
StackTrace:
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.GetValue[T](String propertyName)
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.CallMethod[T](String methodCall)
at Telerik.WebAii.Controls.Html.RadWindow.get_Height()
at HCS.TMS.QA.Automation.PerformanceManager.UI.Controls.Common.PFMRadWindow.get_RadWindowHeight() in D:\HCS\WebAii Automation\PerformanceManager\Common\UI\Controls\Common\PFMRadWindow.cs:line 73
at HCS.TMS.QA.Automation.PerformanceManager.Tests.Areas.Sandbox.MahendraSandBox.Test() in D:\HCS\WebAii Automation\PerformanceManager\Tests\Areas\zSandbox\MahendraSandBox.cs:line 98
InnerException:
*************************************************************************************************************************************************************************
Please let me know if some one have come across the same.
Thanks in advance.
Regards,
Mahendra
I have a rad window in my application and I am trying to get the height and width of the rad window.
When I try to get the the rad window with below mentioned code it throws be a exception.
return m_radWindow.Width;
return m_radWindow.Height;
However, I am able to re-size the rad window, but not able to get the width/height.
Exception detail:
*************************************************************************************************************************************************************************
ArtOfTest.WebAii.Exceptions.ExecuteCommandException was unhandled by user code
Message=ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [$find(\'FilingCabinet\').getBounds($find(\'{0}\').get_popupElement()).height] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: [object Error]
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(\'FilingCabinet\').getBounds($find(\'{0}\').get_popupElement()).height',ClientId:'Client_0096c116-6d01-455b-a291-5c81e1eb1606',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [$find(\'FilingCabinet\').getBounds($find(\'{0}\').get_popupElement()).height] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: [object Error]
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.
Source=ArtOfTest.WebAii
StackTrace:
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.GetValue[T](String propertyName)
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.CallMethod[T](String methodCall)
at Telerik.WebAii.Controls.Html.RadWindow.get_Height()
at HCS.TMS.QA.Automation.PerformanceManager.UI.Controls.Common.PFMRadWindow.get_RadWindowHeight() in D:\HCS\WebAii Automation\PerformanceManager\Common\UI\Controls\Common\PFMRadWindow.cs:line 73
at HCS.TMS.QA.Automation.PerformanceManager.Tests.Areas.Sandbox.MahendraSandBox.Test() in D:\HCS\WebAii Automation\PerformanceManager\Tests\Areas\zSandbox\MahendraSandBox.cs:line 98
InnerException:
*************************************************************************************************************************************************************************
Please let me know if some one have come across the same.
Thanks in advance.
Regards,
Mahendra