With ExecuteScriptAsync
(for example document.documentElement.outerHTML for HTML source)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How to access HTML document using Win32 VC++ from a manually launched HTML file in Microsoft Edge. My requirement:
Previously it was done like the below. But it was only for Internet Explorer. As Internet explorer has been discontinued already we have to replace this functionality asap:
/*************************************************************** MSHTML::IHTMLDocument2Ptr spDocument;
SHDocVw::IShellWindowsPtr m_spSHWinds;
//This is for identifying the Windows currently launched
m_spSHWinds.CreateInstance( SHDocVw::CLSID_ShellWindows );
// Accessing Manually launched HTML file in IWebBrowser2Ptr (IWebBrowser2Ptr interface is used only for IE)
SHDocVw::IWebBrowser2Ptr spBrowser = m_spSHWinds->Item( Index );
//Getting HTML Document object
spDocument = spBrowser->GetDocument(); /***************************************************************
So, I would like to do the same thing but for Microsoft Edge. Any sort of information regarding this would be great!
With ExecuteScriptAsync
(for example document.documentElement.outerHTML for HTML source)