I am doing automated testing using Selenium WebDriver with Python In Internet Explorer. I have opened multiple windows in IE 11 and I closed the current window, after that second last opened window is not getting any focus so to give focus to second last window I want to click and hold on ALT button and then click on ESC button so that second last window get focus.
Basically, I need to achieve the focus on second last window.
eg: SendKeys.SendKeys("{ALT}" + "{ESC}")
Please help me. Thanks in advance.