kytro360
Power Member
- Jan 12, 2010
- 708
- 737
Hello everyone. I need a little help with a bit of code cause Hotmail is acting weird. What I am trying to do is make my bot click an email inside of Hotmail.
The code I have should work but it isnt clicking on anything so I wanted to ask here if anyone can help me out to make it work
.
Ive only included the portion to click on the email. If you can provide any help, I would be truly grateful:
The code I have should work but it isnt clicking on anything so I wanted to ask here if anyone can help me out to make it work
Ive only included the portion to click on the email. If you can provide any help, I would be truly grateful:
Code:
if (webBrowser1.Url.AbsoluteUri.Contains("mail/InboxLight.aspx"))
{
HtmlElementCollection allelements = webBrowser1.Document.GetElementsByTagName("a");
foreach (HtmlElement element in allelements)
{
if (element.GetAttribute("value").Contains("Hotmail getting started tip #1: Add contacts")) { element.InvokeMember("click"); }
}