I want to fill forms in a WebBrowser. Is there any other way to do it other then
?Code:WebBrowser1.Document.GetElementByID("Name").SetAttribute("value","Text")
The reason I dont wanna use that is because the ID Names will differ.
Printable View
I want to fill forms in a WebBrowser. Is there any other way to do it other then
?Code:WebBrowser1.Document.GetElementByID("Name").SetAttribute("value","Text")
The reason I dont wanna use that is because the ID Names will differ.
do you have the name of the element?
well obviously the ID's will be different. you can't have things in HTML with the same ID otherwise, how would you reference them?
What is it that you're trying to do?
That's really the only way to fill input fields (easiest way actually) or you can capture the collection of hyperlinks into an array and iterate through looking for the correct ID name or other attribute and set its value accordingly
vb Code:
WebBrowser1.Document.All("name").innertext = "your text"
not seeing the difference there paul
everything will still have a unique name, therefore requiring multiple value assignments
bump.