Cannot open a newtab in selenium webdriver on Mac OS X
问题 I should be able to open a new tab in selenium for python using the code from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Firefox() driver.get("http://stackoverflow.com/") body = driver.find_element_by_tag_name("body") body.send_keys(Keys.COMMAND + 't') But no new tab opens, and no error message appears (http://stackoverflow.com/ does load). Note that I am using Keys.COMMAND + 't' because I am running the code on OS X. I have no idea what is