Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 23, 2008 06:36 PM by greekcandyman
Member
2 Points
5 Posts
Jun 23, 2008 06:36 PM|LINK
Is it possible to get the name or id of a Webrowser element by search for the value?
Take the following code for example:
MessageBox.Show(
If you navigate to Google.com and run that code, the messagebox would display "Google Search", because the name (btnG) corresponds to the value,
So is there a way to reverse this? Input "Google Search" to have the messagebox display "btnG'?
Thanks...
webbrowser element reverse messagebox mshtml
greekcandyma...
Member
2 Points
5 Posts
Returning a Web Element's Name?
Jun 23, 2008 06:36 PM|LINK
Is it possible to get the name or id of a Webrowser element by search for the value?
Private Sub tester_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tester.ClickMessageBox.Show(
"Value Is: " & DirectCast(GetCurrentWebForm.item("btnG"), mshtml.HTMLTextAreaElement).value) End SubIf you navigate to Google.com and run that code, the messagebox would display "Google Search", because the name (btnG) corresponds to the value,
So is there a way to reverse this? Input "Google Search" to have the messagebox display "btnG'?
Thanks...
webbrowser element reverse messagebox mshtml