Using the WebBrowser control in a workflow

  • 13 September 2013
  • 0 replies
  • 4 views

Badge

Hi I wouldn't mind using the System.Windows.Forms.WebBrowser control in a workflow so I can automate some BPM we have around downloading a file from a website daily.  I thought I could simply use the control and then navigate, login, browse to the page, and download the file.


However the WebBrowser control requires a STA thread apartment state which K2 is not.  I can fire off a new STA thread for the control but it kind of looses the K2 handle for it so workflow is not really used.  Is there some way of some control I can use in K2 that will let me do this type of HTML navigation? 


I basically want to navigate to a page, wait 10 seconds, enter login details and click login, then wait 10 seconds, Navigate to a page, wait 10 seconds, click on report to download, which opens it on the server, check report is open and then save it.


Thanks,


Craig


0 replies

Be the first to reply!

Reply