I'm doing a simply program to collect some e-mail's information from a "Disposable E-mail" (www.yopmail.com) page, when i try to press the "button" to open the e-mail using the functions GetElementById and InvokeMember, it doesn't works, the program says that GetElementById returns Nothing and the program stops.
I've tried in another pages using GetElementById and InvokeMember("click") and it works but, i am not sure why doesn't work in this case
When i inspect the element, it shows the next:
<div class="m" onclick="g(2,0);" id="m2"><div class="um"><a class="lm" href="m.php?b=hello&id=me_ZGxkZQNkZGt1ZQH4ZQNkZQN5ZGN5ZN=="><span class="lmfd"><span class="lmh">13:50</span><span class="lmf">[SPAM]PINTRILL</span></span><span class="lms">PT | Snoopy & Friends are Back.</span></a></div></div>
    wb.ScriptErrorsSuppressed = True
    wb.Navigate("www.yopmail.com?hello")
    wait(5)
    While fullyLoaded = False
        If wb.Url.Host <> "www.yopmail.com?hello" Then
            MsgBox("Yopmail 'finished' loading")
            wait(2)
            fullyLoaded = True
        Else
            MsgBox("inside while")
            wait(5)
        End If
    End While  
    wb.Document.GetElementById("m2").InvokeMember("click")
When the program stops, it shows me this:
System.NullReferenceException: 'Object reference not set to an instance of an object.'
System.Windows.Forms.HtmlDocument.GetElementById(...) gave back Nothing.