I am performing following steps -
1)Executing a script (E.g. Say Chrome browser is open )
2)If the script under execution has an error, I have accidentally started a new script (Second script has to launch the Chrome browser again from desktop)
3)This second script is closing the window of the earlier script and it is now in the state where new script is supposed to start(Chrome browser of earlier script that is opened is automatically closed and now desktop is seen)
4)However, the second script does not recognize the image in first action.
5)It does work fine if I restart the second script again. (Second script fails to recognize the image of chrome browser icon unless I restart it)
My questions are -
1)How is the the window opened by first script being closed when no such statement is executed ?
2)Why is the image in first statement of second script not recognized even if the screen is now in base position where the script is supposed to start ?