If I had a button with the ID of
id="fbSingle_43b9a20f6f0e6bdcae16bc23192083"
But besides the line "fbSingle_" Everything else changes upon the page refresh, how could I click the button using this code-->
But instead of finding the exact ID, the webbrowser looks up if the Document has an ID containing a certain string. Almost like how in a textbox you would use
Thank you all :)
Also,
if you know how to click a button by the text on the button, that would be very helpful. The button I am trying to click is
Though if you open up the XPath, it is
id="fbSingle_43b9a20f6f0e6bdcae16bc23192083"
But besides the line "fbSingle_" Everything else changes upon the page refresh, how could I click the button using this code-->
Code:
WebBrowser1.Document.All("Button ID").InvokeMember("click")
Code:
If Textbox1.Text.Contains("fbSingle_") Then
'Do Something
End If
Also,
if you know how to click a button by the text on the button, that would be very helpful. The button I am trying to click is
Code:
<div class="btn3">Like</div>
Code:
//*[@id="fbSingle_43b9a20f6f0e6bdcae16bc23192083"]/div/center[2]/a/div