This is the button element:
<input type="image" class="btnClaim" src="http://cdn1.swagbucks.com/content/results/images/btnClaimPrize.png" onclick="sb_vd.capSubmit();">
I've tried this code:
Dim allelements As HtmlElementCollection = WebBrowser1.Document.All
For Each element As HtmlElement In allelements
If element.GetAttribute("class") = "btnClaim" Then
element.InvokeMember("click")
but it does not click the button. How do I programmatically click this button?
It is possible with javascript
window.onload=function()
{
img_click();
}
function img_click()
{
//do the code
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.