Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fall back to using browser instead of document to get current URL.
To maintain compatibility with other WebDriver implementations, the IE driver uses the IHTMLDocument2 interface to get the current URL, so that the proper URL is returned even when an embedded frame has the focus. However, when browsing a non-HTML document (like a PDF), the driver cannot get an IHTMLDocument2. In that case, fall back to the IWebBrowser2 interface.
- Loading branch information