[Migrated content. Thread originally posted on 23 April 2009]
Has anyone ever used the microsoft webbrowser control to automatically populate fields on a website and click the submit/login button?So far as I can gather I need to do something like the following after I @navigate to my URL, but of course this is visual basic not cobol ;)
WebBrowser1.Document.All("field1").focus
WebBrowser1.Document.All("field1").Value = "my text value"
WebBrowser1.Document.All("button1").focus
WebBrowser1.Document.activeElement.ClickAnyone know how to convert this to cobol commands?
I tried:
MODIFY WebBrowser1, @Document::All("field1")::focus.But I get a compile error of:
Interface definition '@IDISPATCH OF @SHDOCVW' not found
So I thought I needed to do something like:
INQUIRE WebBrowser1 @Document IN PDisp-handle.but then how do I set the rest of the fields?
any ideas or direction would be much appreciated.
Thanks





