I am trying to press these buttons through click event
First Code (id 1)
<td id="UPDown_1">
<a href="javascript:void(0)" class="upMinus">
<img src="/alpha/images/up/minus.png" width="14px" alt="all"></a>
<a href="javascript:void(0)" class="DownPlus">
<img src="/alpha/images/Down/plus.png" width="14px" alt="maximum"></a></td>
Second Code (id 2)
<td id="UPDown_2">
<a href="javascript:void(0)" class="upMinus">
<img src="/alpha/images/up/minus.png" width="14px" alt="all"></a>
<a href="javascript:void(0)" class="DownPlus">
<img src="/alpha/images/Down/plus.png" width="14px" alt="maximum"></a></td>
I tried this code
For Each element As HtmlElement In WebBrowser1.Document.GetElementsByTagName("img")
If element.GetAttribute("alt") = "all" Then
element.InvokeMember("click")
End If
Next
it's worked but of course pressed all the buttons