[Help]Getelementby class/type?

Posts 1–4 of 4 · Page 1 of 1
[Help]Getelementby class/type?
is it possible to use the class or type of something on a webpage to click it?(like u can use the name and id?)
Did you give it a try before asking?
Quote Originally Posted by Blubb1337 View Post
Did you give it a try before asking?
i have but i will try again since u asked.


edit:
i just tried i found that there is a getelementbytagname but idk if there is by type or class.(i tried to search Google to but there is nothing that really helps there either.
I would need the actual site, if you are trying to click a image button or similia, you can always use

form based (website forms)

[php]
WebBrowser1.Document.Forms(0).InvokeMember("Submit ")
[/php]

' will click anchor tags
[php]
WebBrowser.Document.All(a).InvokeMember("click")
[/php]

'will click buttons
[php]
WebBrowser.Document.All(input).InvokeMember("click ").
[/php]

or you can use get element as html element collection
and drill down through each attribute.

either way should be fine.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?