Clicking a Link in Mailinator

Hi.

I am using Mailinator.com and I need to click on a subject called "COMPUTER BILD SPIELE-Aktion: Avatar-Hubs".

Basically I just get the part of the link and input it into my web browser called webBrowser1 and retrieve the text...

The html looks like this:

<table id="inboxList">
        <tbody><tr>
            <th width="180">From:</th>
            <th>Subject:</th>
        </tr>

        <tr><td bgcolor="#EEEEFF"><b>cbspiele@computerbild.de</b></td><td bgcolor="#EEEEFF" align="center"><a href="/displayemail.jsp?email=hi910&amp;msgid=3361464">COMPUTER BILD SPIELE-Aktion: Avatar-Hubs</a></td></tr>


        <tr>
            <td align="right">

            </td>
            <td>&nbsp;</td>
        </tr>

    </tbody></table>

Open in new window

Se7enFreakAsked:
Who is Participating?
 
eguilhermeCommented:
you can use the htmlagilitypack to get all a items and parse one by one.. example:

HtmlAgilityPack.HtmlDocument Doc = new HtmlAgilityPack.HtmlDocument();
Doc.LoadHtml(MyHtmlString);

  HtmlAgilityPack.HtmlNode NodesA= Documento.DocumentNode.SelectSingleNode(@"//a");

foreach(var Node in NodesA)
{
//then you check the innertext for that text and then get the href attribute for the url
}

you get htmlagilitypack here  
http://htmlagilitypack.codeplex.com/

0
 
Se7enFreakAuthor Commented:
Can anyone help me?
0
 
Se7enFreakAuthor Commented:
I don't know why you just wouldn't use a webbrowser..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.