-
-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Pretty sure I'm just missing something obvious, but I am failing to see how this works, and as far as I can tell it does not in the Sample project.
Loading a first web page ( as an example in the test case below ), http://www.druware.com/unittests/window.location.href-set.html
Assuming that page contains a script that changes the location.href which should trigger the window to load a new document with a new document. I see that the script is processed and loads the new document in the script context, so with the internal await on the OpenAsync() in Document.cs:1527,
await _context.OpenAsync(request, CancellationToken.None);
it all happens synchronous. I think there is in issue in that the above code doesn't update the IHtmlDocument, so that even though the Location is changed, and the IHtmlDocument show the new address, the content of the parsed results remain those of the original document.
I tried to get to the newly loaded document from the Context.Active, but that too, is the original document data.