I'm writing automation with Python (3.6.5) and Selenium (3.141.0). The webpage I'm visiting, opening a new tab, which I get to my driver.window_handles in Chrome and FF, but not in IE 11.
I tried to google. The only solution I could find is: How to switch to the new browser window, which opens after click on the button?
But it didn't work.
I tried to add 1 second of sleep but the result remained the same.
handles = self.browser.window_handles
test.log('window handles: ' + str(len(handles)))
I expected the output to be 2, which I get in Chrome and FF but in IE I get 1.