I have a .bat file that simply opens two different browsers and points them to unique links. After he opens the first browser, he waits a few seconds, then the second browser opens. I expect the second browser window to be automatically focused and active. This behavior only happens when I click the .bat icon in windows.
When I run the .bat file from the command line, a second browser window opens, but in the background. This only happens when the first browser is IE - for some reason it does not want to give up the focus of the window.
I tried using flags like / max to make sure the browser is focused, but that doesn’t help when focusing the window.
Does anyone have any ideas?
Here is the .bat file:
@echo off
:: start IE
start iexplore http://localhost:9080/tests/test_getLink.html
:: Wait ~3 seconds
@ping 127.0.0.1 -n 4
:: start FF
start firefox -new-window http://localhost:9080/tests/containerTwoWayForm.html?robot=active
( IE , firefox. , , , , , . )
, IE . , , (, .. Ff.)
, .bat, .