I have used below lines in my script to open new tab. But it is not working now.
body = driver.find_element_by_tag_name("body")
body.send_keys(Keys.CONTROL + 't')
Can someone assist me further.
Browser Used: Chrome
I have used below lines in my script to open new tab. But it is not working now.
body = driver.find_element_by_tag_name("body")
body.send_keys(Keys.CONTROL + 't')
Can someone assist me further.
Browser Used: Chrome
Try below:-
body.send_keys(Keys.COMMAND + 't')
Hope it will help you :)