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>

I tried this but no luck...

void ClickButton(string attName)
        {
            HtmlElementCollection col = webBrowser2.Document.GetElementsByTagName("input");
            foreach (HtmlElement element in col)
            {
                if (element.GetAttribute("value") == attName)
                {
                    element.InvokeMember("click");
                }
            }
        }

            ClickButton("COMPUTER BILD SPIELE-Aktion: Avatar-Hubs");
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.