Im doing it like this:
Of course in inside if(profiles.Count>0) there can be a checking of a username which is stored for example
in plugin settingas. I just click first one.
Br,
Code:
private void webBrowser1_DocumentCompleted(System.Object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (this.webBrowser1.ReadyState != WebBrowserReadyState.Complete){
return;}else{
System.Diagnostics.Debug.Print("COMPLETED !!");
if (e.Url.Equals(webBrowser1.Url))
{
HtmlDocument document = webBrowser1.Document;
foreach (HtmlElement ele in document.All)
{
// elementofpage.Add(ele);
if (ele.InnerHtml != null)
{
if (ele.GetAttribute("className").ToString().Contains("ng-binding"))
{
profiles.Add(ele);
}
}
}
if(profiles.Count>0){
profiles[0].InvokeMember("click");
}
}
}
...............................................
Of course in inside if(profiles.Count>0) there can be a checking of a username which is stored for example
in plugin settingas. I just click first one.
Br,