How to minimize existing IE browser window

My workflow attaches to an existing IE browser window to get work done. Attaching to IE can emit a “Browser” variable as a side effect, if desired. I want to minimize the IE browser window when the workflow is finished… but the Minimize Window activity takes a Window variable, not a browser variable.

I tried using Get Active Window after attaching to IE… and use the Window variable from that in the Minimize Window activity… but that seems to cause IE to become unstable. Perplexed.

How do I get from here to there?

Cant check now but AFAIK Browser is either a subclass or implicitly convertible to Window, so you should be able to directly use a Browser object there.

How about you use an “Attach Browser” activity. Inside its “Do” Activity Use a “Minimize Window” activity.

1 Like