在常规WebBrowser
您可以点击一些与此代码:如何使用WebKitBrowser调用会员?
webBrowser1.Document.GetElementById("welcome_box_sign_in_button").InvokeMember("Click");
但在WebKitBrowser,没有.InvokeMember
。我如何去做这件事?
这是按钮我试图单击该代码:
<input tabindex="5" class="submit spriteall spritesite" id="welcome_box_sign_in_button" onclick="try{}catch(e){};if(!this.elem_welcome_box_sign_in_button){this.elem_welcome_box_sign_in_button=$('welcome_box_sign_in_button');this.spin_welcome_box_sign_in_button=$('welcome_box_sign_in_button_spinner');this.restore=function(t){return function(){t.elem_welcome_box_sign_in_button.show();t.spin_welcome_box_sign_in_button.hide();Event.stopObserving(window, 'unload', t.restore);}}(this);}this.elem_welcome_box_sign_in_button.hide();this.spin_welcome_box_sign_in_button.show();Event.observe(window, 'unload', this.restore);" type="submit" value="Sign In">
我真的不知道如何使用你的代码。我编辑了我的文章,所以你可以编辑我的文章的代码?谢谢。 – Dozer789