I am trying transfer data from a Windows Form application to a web browser. I achieve this for IE (Internet Explorer), but now I am trying to transfer this data to all browsers such as Chrome, Mozilla Firefox,Safari.
For IE I am using MSHTML.dll but I don't know to to achieve it for any of the other browsers.
Here is the code I use for IE:
InternetExplorer TargetIE = null;
IHTMLDocument2 document = null;
//Check whether the IE is opened
foreach (InternetExplorer internetExplorer in new ShellWindows())
{
if (internetExplorer.Document is HTMLDocument)
{
TargetIE = internetExplorer;
break;
}
}
Using XPath You Can handle such kind of stuff
also download HtmlAgilityPack dll from this link HtmlAgilityPack