I have the following code:
Code: Select all
m myDoc As WebDocument
myDoc = "<webdocument rxpath>"
myDoc.EnsureVisible()
myDoc.Navigate("file://path to my local html file")
Code: Select all
Ranorex.SetAttributeFailedException: Setting attribute 'pageurl' failed on element '{WebDocument:blank}'. System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at mshtml.IHTMLDocument2.set_url(String p)
at Ranorex.Plugin.WebDocumentFlavorElement.SetAttributeValue(Element element, String name, Object value)
at Ranorex.Core.Element.SetAttributeValue(String name, Object value)
--- End of inner exception stack trace ---
at Ranorex.Core.Element.SetAttributeValue(String name, Object value)
at Ranorex.WebDocument.set_PageUrl(String value)
at Ranorex.WebDocument.Navigate(String url, Boolean waitForLoaded, Duration timeout)
at Ranorex.WebDocument.Navigate(String url, Boolean waitForLoaded)
at Ranorex.WebDocument.Navigate(String url)
if this is a bug for Ranorex?
thanks