0

Hey. I am trying to make a small Google Adwords keyword planner tool which incorporates clicking the download button. ( http://i.imgur.com/M3Ksotz.png )

However, it's a bit difficult to figure out how can I programmatically click that button because it's not a usual <input> HTML button, but it's code looks like this:

<span class="aw-toolbelt-downloadButton spGWB spHWB aw-toolbelt-downloadButton spGWB spHWB-hover">Download</span>

I tried Googling but I didn't find anything helpful. The closest I found is..

ie.div(:id, "buttontoclick").fireEvent("onmouseup")

..but I am unsure how can I use it

Any help appreciated.

Thanks!!

Edited by pritaeas: Moved.

3
Contributors
2
Replies
23
Views
4 Years
Discussion Span
Last Post by greatiq
0

Click a button on Google Adwords with VB.NET?

@imperator

Why can't you used C# or ASP.net to do that? Why VB? I am very curious why you are doing that? Javascript/jQuery would be another option.

0

use this thing:

For Each el as HtmlElement In   Webbrowser.Document.GetElementByTagName("span")
    If el.InnerText.Equals("Download") Then
        el.InvokeMember("click")
        Exit For
    End If
Next
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.