Wondering if anyone has any thoughts?
Error thrown is: "WebDocument has become invalid while waiting for WebDocument to be loaded."
We do use ajax, and I'm guessing that's mostly the issue but not sure exactly how to work around this?
Code: Select all
WebDocument webPage = Host.Local.FindSingle(webPageInfo.AbsolutePath, 30000); webPage.EnsureVisible(); webPage.Focus(); webPage.WaitForDocumentLoaded(30000); //<-- this is where it sometimes fails