This is a "Sign in" image link.
<div class="inputCol">
<a href="javascript:document.loginForm.submit()">
<img tabindex="3" src="/sams/en_US/images/bt-signIn.gif" border="0" alt="Sign In">
</a>
</div>
What should I replace "???????" with in the following code to get the link element of the Signin image link and use "invokemember" to click it?
private void button2_Click(object sender, EventArgs e)
{
webBrowser1.Navigate("samsclub.com/sams/account/signin/login.jsp");
while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
{
Application.DoEvents();
}
webBrowser1.Document.GetElementById("mail").SetAttribute("value", "myusername");
webBrowser1.Document.GetElementById("pw").SetAttribute("value", "mypassword");
webBrowser1.Document.GetElementById("???????").InvokeMember("Click");
}