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?
November 29, 2008 12:36 AM
November 29, 2008 1:48 AM