I searched the internet and found examples for;
"How to click a button which is in a webBrowser(internet explorer) in C# ?"
And here is the code which is working on google;
JS :
void ClickButton(string attribute, string attName)
{
HtmlElementCollection col = webBrowser1.Document.GetElementsByTagName("input");
foreach (HtmlElement element in col)
{
if (element.GetAttribute(attribute).Equals(attName))
{
element.InvokeMember("click"); // Invoke the "Click" member of the button
}
}
}
But my webpage button has different tags. So the program can't detect to click it.
My main question is; How to click this button programmatically ?
HTML :
<a class="orderContinue" href="Addresses" title="Sipar Ver">Sipar Devam</a>