开发者

invoke button submit using webkitbrowser

开发者 https://www.devze.com 2023-02-21 22:15 出处:网络
how to invoke form button submit on WebKitWebBrowser using c# code behind? i can find the control using

how to invoke form button submit on WebKitWebBrowser using c# code behind? i can find the control using

webKitBrowser.Document.GetElementById("Email").SetAttribute("value", "argeure");

but 开发者_运维问答is ther any method to call like this?

webKitBrowser.Document.GetElementById("signIn").Invoke("click");


You should do it with javascript. ie write some js to the WebKitWebBrowser, which gets the form element and calls on .submit() on it.

0

精彩评论

暂无评论...
验证码 换一张
取 消