I have read a few articles on the subject, but I can't get this one to work. I am trying to automate a simple program to press a couple buttons on a webpage. The webpage however has everything in Javascript, so the button I am trying to press has the html tag:
Expand|Select|Wrap|Line Numbers
- <a href="#" class="send_button" onclick="w(this).call('sendLoad', '27196', 'normal', 5);">Send</a>
Expand|Select|Wrap|Line Numbers
- w.call('getPage',action,options.form.id)
I have been trying to submit this from C# when loaded in a WebBrowser control using the following:
Expand|Select|Wrap|Line Numbers
- private object MyInvokeScript(string name, params object[] args)
- {
- return this.webBrowser.Document.InvokeScript(name, args);
- }
- private void CallScripts()
- {
- this.MyInvokeScript("w.call", "sendLoad", "27196", "normal", 5);
- }