Can not restore browser windows after BringIDEandBrowserToBackground

Hi @admin

With desktop automation after using BringIDEandBrowserToBackground i work in my desktop but if i need to restore browser and ui vision and i use bringbrowsertoforeground do not work and browser and ui vision gui do not showed.

Seem to see a movement but the browser window do not show.

I tested in in 2 cases

  1. I used BringIDEandBrowserToBackground to search file in my hard disk (desktop automation) after i used bringbrowsertoforeground but browser and ui vision are not visible.

  2. I used BringIDEandBrowserToBackground to copy and paste cells in excel, after i used bringbrowsertoforeground to resume the macro (i use automatic pause to check the work) but browser do not showed.

I tested with firefox 94 and ui vision 6.2.6

Thanks for support

It works for me, see this video here: Xtype sending keys to itself - #7 by admin (the post is about a different issue, but the screen video shows BringIDEandBrowserToBackground and then bringbrowsertoforeground)

If it still does not work for you, can you add a video?

Hi

Today i found the cause, when macro have a notification bringbrowsertoforeground do not work, if i remove the notification working

Macro code do not work

 {
   "Name": "AAA",
   "CreationDate": "2021-11-13",
   "Commands": [
     {
       "Command": "echo",
       "Target": "Warning You Need To Have Folder In Front",
       "Value": "#shownotification",
       "Description": ""
     },
     {
       "Command": "store",
       "Target": "true",
       "Value": "!ERRORIGNORE",
       "Description": ""
     },
     {
       "Command": "store",
       "Target": "true",
       "Value": "!STATUSOK",
       "Description": ""
     },
     {
       "Command": "store",
       "Target": "FAST",
       "Value": "!REPLAYSPEED",
       "Description": ""
     },
     {
       "Command": "store",
       "Target": "300",
       "Value": "!TIMEOUT_PAGELOAD",
       "Description": ""
     },
     {
       "Command": "store",
       "Target": "5",
       "Value": "!TIMEOUT_WAIT",
       "Description": ""
     },
     {
       "Command": "store",
       "Target": "0",
       "Value": "!TIMEOUT_MACRO",
       "Description": ""
     },
     {
       "Command": "store",
       "Target": "300",
       "Value": "!TIMEOUT_DOWNLOAD",
       "Description": ""
     },
     {
       "Command": "comment",
       "Target": "Start Desktop Automation",
       "Value": "",
       "Description": ""
     },
     {
       "Command": "bringIDEandBrowserToBackground",
       "Target": "",
       "Value": "",
       "Description": ""
     },
     {
       "Command": "pause",
       "Target": "2000",
       "Value": "",
       "Description": ""
     },
     {
       "Command": "XType",
       "Target": "${KEY_CTRL+KEY_F}",
       "Value": "",
       "Description": ""
     },
     {
       "Command": "XType",
       "Target": "My Name To Search",
       "Value": "",
       "Description": ""
     },
     {
       "Command": "bringBrowserToForeground",
       "Target": "",
       "Value": "",
       "Description": ""
     },
     {
       "Command": "pause",
       "Target": "5000",
       "Value": "",
       "Description": ""
     }
   ]
 }

Macro code that works

{
“Name”: “AAA”,
“CreationDate”: “2021-11-13”,
“Commands”: [
{
“Command”: “comment”,
“Target”: “echo // Warning You Need To Have Folder In Front”,
“Value”: “#shownotification”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!ERRORIGNORE”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!STATUSOK”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “FAST”,
“Value”: “!REPLAYSPEED”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “300”,
“Value”: “!TIMEOUT_PAGELOAD”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “5”,
“Value”: “!TIMEOUT_WAIT”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “0”,
“Value”: “!TIMEOUT_MACRO”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “300”,
“Value”: “!TIMEOUT_DOWNLOAD”,
“Description”: “”
},
{
“Command”: “comment”,
“Target”: “Start Desktop Automation”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “bringIDEandBrowserToBackground”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “pause”,
“Target”: “2000”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_CTRL+KEY_F}”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XType”,
“Target”: “My Name To Search”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “bringBrowserToForeground”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “pause”,
“Target”: “5000”,
“Value”: “”,
“Description”: “”
}
]
}

The only difference is the notification.

Tested on firefox 94.

Thanks

Can you test my macro code please ?
Thanks

Hi, your first macro works fine for me, see here:

(In the video the notification does not show because the screen recording software disables it. But works also when not recording and with the notification shown. This is on Windows 10)

The above video was in Chrome. It also works with Firefox:

Thanks for reply, for me in firefox do not work, I try to find the solution but in firefox the screen do not return in front when there is a notification