|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
WebBrowser: Programmaticaly click an image buttonI got an image button in a form. I want to simulate a click through programming.
There is no Click method for HTMLElement. I tried el.RaiseEvent("Click") instead and an error occured. How can I click the image button? For Each el In frm.All If el.TagName.ToString = "INPUT" Then Debug.Print(el.OuterHtml) If el.GetAttribute("type") = "image" Then If el.GetAttribute("Value") = "Login" Then el.RaiseEvent("Click") Exit For End If End If End If Next el Hello nime,
Well, you either click the button to submit the form.. in which case you want to call Form.submit()... or you click the button to invoke a click handler (<img onclick="someJSFunction()">).. in which case you call the function direct. -Boo Show quoteHide quote > I got an image button in a form. I want to simulate a click through > programming. > There is no Click method for HTMLElement. I tried > el.RaiseEvent("Click") > instead and an error occured. > How can I click the image button? > > For Each el In frm.All > If el.TagName.ToString = "INPUT" Then > Debug.Print(el.OuterHtml) > If el.GetAttribute("type") = "image" Then > If el.GetAttribute("Value") = "Login" > Then > el.RaiseEvent("Click") > Exit For > End If > End If > End If > Next el
WebBrowser1.DocumentText
Multithreaded Updating of StatusBar HTML edit Vb.net how to delete a file when the windows start programmically open a pdf file in vb.net problem with string function in vb.net XML or SQL Server? Font size not right when converting from RTF to Web Looping through directories Publishing An ASP.NET Website With Visual Studio .NET 2005 |
|||||||||||||||||||||||