Click button if text at webpage is there.

Status
Not open for further replies.

MoneyFreak

$$$
Original poster
veteran
old school
senior
coldschool
member
Joined
Feb 3, 2011
Posts
3,377
Reaction score
468
Points
177
I want to click a button if a text is on a webpage. Can you do this in VB.net?
 
D

DTD

Guest
If webbrowser1.Documenttext.Contains("yourtext") then webbrowser1.Document.getelementbyid("buttonid").invokemember("click")

That?
 
  • Like
Reactions: MoneyFreak

MoneyFreak

$$$
Original poster
veteran
old school
senior
coldschool
member
Joined
Feb 3, 2011
Posts
3,377
Reaction score
468
Points
177
If webbrowser1.Documenttext.Contains("yourtext") then webbrowser1.Document.getelementbyid("buttonid").invokemember("click")

That?
Your awesome! I will check if it works :D But it looks like it works.
 
Status
Not open for further replies.