I am trying to automatically click on a button on a webpage. An example of the button can be found here: http://www.movshare.net/video/ut55cfdv开发者_开发百科g5wgj/?
I can get rid of it with javascript in firefox usin firebug, but when I'm trying the same script in c# with the browser controll it doesn't work.
The script is:
btn = document.getElementsByName("submit");
btn[0].click();
Any help would be nice.
.click
would refer to the corresponding event, try;
.Document.All.GetElementsByName("submit")[0].InvokeMember("click");
精彩评论