BringBrowserToForeground - Selenium IDE
BringBrowserToForeground and BringIDEAndBrowserToBackground
BringBrowserToForeground brings the browser window to front. It is useful if you want to make sure that the web browser is in the foreground. Normally when you start a macro the UI.Vision RPA UI is in the foreground. Our users tell us that having the browser in the foreground is especially useful when launching UI.Vision RPA macros from bookmarks - because typically in this case you want to see than what UI.Vision RPA does inside the browser - and often manually continue where UI.Vision RPA stopped.
For example, assume a UI.Vision RPA macro runs a login sequence and navigates to a certain sub page. With BringBrowserToForeground in the macro you can be sure that your browser is in front and you can start your work on this page right aways.
BringBrowserToForeground is also useful to make sure the tab in which the macro runs is in the foreground, so that elements can receive the focus.
The BringIDEandBrowserToBackground command is the opposite of BringBrowserToForeground. It hides the browser and the IDE. This command is especially useful during desktop automation, when you want to make sure that the UI.Vision RPA IDE and the browser do not cover or overlapp with the application(s) that you automate.
Known issue on Linux with Firefox
(Only) on Linux the command "BringBrowserToForeground" does not work in Firefox, but it works fine with Chrome. Workaround for Firefox on Linux: Use "BringIDEandBrowserToBackground" to minimize IDE + browser - and then use "BringBrowserToForeground" to show the browser again.
Related Demo Macros
The ready-to-import-and-run source code of all demo macros can be found in the Open-Source RPA software Github repository.
Anything wrong or missing on this page? Suggestions?
...then please contact us.