Open the two browser at the same time

Hi,as title,I have the problem that I open the browser with two same windows at the same time
My project will browser 2.using the remote desktop to transport the file to local another browser upload the file
So I have the two process that will cause this problem
I find someone have the same issue like me

However I still not understand how to fix open the two windows at the same time.
Maybe the reason is the network weak or sometimes will not open,so
I use the kill process try catch and delay,but still not stable.
Can the open browser have the delay or time handler?Please help me thanks

If you open a browser you get back a variable of type UIBrowser. You can use this to attach to exactly that browser you want to later.