Forum Discussion

heidi_n's avatar
heidi_n
Regular Contributor
10 years ago
Solved

How to fix Warning "Simulating the ESC keystroke to close the unexpected window."?

How can I fix this warning? Warning "Simulating the ESC keystroke to close the unexpected window."



Additional Info: Aliases.browser.Window("#32770", "Internet Explorer 11", 1)



Run Browser Internet Explorer "https://www.google.com/"... Launches the specified browser...
  • Usually this msg comes whie handling unexpected window.

    If you go to tools/current project properties in menu and click on play back in right panel

    You may have ticked press Esc in "On unexpected window"



    The problem is your test having some other window, not related to what is being testing at that moment.   

    So check,

    1) the previous windows are properly closed

    2) your test designe to give enough time to close previous windows/pages

    3) some pop up window came which u didn't handle in test



2 Replies

  • NisHera's avatar
    NisHera
    Valued Contributor
    Usually this msg comes whie handling unexpected window.

    If you go to tools/current project properties in menu and click on play back in right panel

    You may have ticked press Esc in "On unexpected window"



    The problem is your test having some other window, not related to what is being testing at that moment.   

    So check,

    1) the previous windows are properly closed

    2) your test designe to give enough time to close previous windows/pages

    3) some pop up window came which u didn't handle in test