I have a problem. I am trying to automate a mouse click with in my browser. The first word in the inner text of the link stays constant but there is a number that follows the text that changes. Here is a sample of what i have.
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
For Each Link As HtmlElement In WebBrowser1.Document.Links
If Link.InnerText = "fight a rock for $" Then
...the button inner text is really displayed as, fight a rock for $2,000
but the dollar amount changes, however the alpha text and $ sign stay the same as shown above in the code. Is there a way to call on the inner text of a button with out giving all of its text and perform a click?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!