def open_new_window(self, switch_to=True):
self.driver.execute_script("<STR_LIT>")<EOL>time.sleep(<NUM_LIT>)<EOL>if switch_to:<EOL><INDENT>self.switch_to_window(len(self.driver.window_handles) - <NUM_LIT:1>)<EOL><DEDENT>
Opens a new browser tab/window and switches to it by default.