I have been attempting to write an auto-login code for some websites that I frequent, but one of the website's forms has an odd submit button. Instead of being the usual button that you can call by it's Id it's instead a link.
I was actually wondering if I could call this in the same way I have been filling out the information in the other forms?
Here's the "buttons" code
<a class="blue-button" href="javascript:void(0)" onclick="Form.submit(this)">
and here's my code for filling out the form.
private void button1_Click(object sender, EventArgs e)
{
browser.Navigate(@"https://us.battle.net/login/login.xml?ref=https%3A%2F%2Fwww.worldofwarcraft.com%2Faccount%2F&app=wam");
}
private void browser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
browser.Document.GetElementById("accountName").SetAttribute("value", accountName);
browser.Document.GetElementById("password").SetAttribute("value", accountPass);
// browser.Document.GetElementsBy... Here's where I'm getting off.
I've also tried sending the {ENTER} key to the website, and this didn't work. maybe I did it wrong though
Thanks in advance for any help