I'm trying to interact with a webpage through VB using a WebBrowser
. When I click a button within my software, I want it to click a button that's located on a webpage.
Using inspect element on the button placed on the website, it shows as a standard div id
with style paramenters linked to it. There is also a jQuery event that the div
is referencing, showing as the website but with a port number on the end www.example.com:77
The jQuery is as follows
function() {
try {
gDvr.Record(false);
} catch (e) {}
}
All I want to do is inject that statement so it is set to true through my VB application. I so far have this solution but only links to the div id
which isn't very useful
WebBrowser1.Navigate("www.example.com/")
For Each Element As HtmlElement In WebBrowser1.Document.GetElementById("LVRcA").InvokeMember("click")
Exit For
Next Element