I have tried various commands like
driver.switch_to_window(\"_blank\")
or
driver.switch_to_window(None)
b
I have solved the problem this way:
a_elem = driver.find_element_by_link_text("Link with _blank") self.driver.get(a_elem.get_attribute('href'))