Question

Would it be possible to interrogate the IE across two projects?

I find that I have the need to download in several application adapters. Rather than replicating the automation across all the adapters I'm hoping that I can somehow place the download automations in a project that can be shared. I have a project where I keep methods and scripts that can be used across automations, however these shared services do not rely on an adapter. Would there be a way to pass the handle of the Download bar into the procedure? Or would it be possible to interrogate the IE across two projects?

Branched Post Information: 
Correct Answer
October 9, 2019 - 9:19am

Yes. You can pass the "This" property of a control to get a reference to it and then use that control in an automation. You just need to set the input parameter to the correct type. In the case of the IE Download bar, it is a generic control. The type is OpenSpan.Adapters.Controls.Control.

Comments

Keep up to date on this post and subscribe to comments

Pega
October 9, 2019 - 9:19am

Yes. You can pass the "This" property of a control to get a reference to it and then use that control in an automation. You just need to set the input parameter to the correct type. In the case of the IE Download bar, it is a generic control. The type is OpenSpan.Adapters.Controls.Control.

October 9, 2019 - 4:39pm

Thanks,  It took me awhile to figure out I needed to set the type in the Automation Entry to OpenSpan.Adapters.Controls.Control from the Browse types dropdown.  Works great.