driver.find_element_by_tag_name('body').send_keys(Keys.CONTROL + 't')
#this doesn't work either 我想让第二种方法工作,因为它似乎是最可读和最明智的,我是不是在代码中做错了什么?或者,我需要在Selenium中更改什么选项才能启用这样的打开选项卡吗? 编辑:第二个和第三个方法根本不会产生任何结果。甚至都不例外。
我知道这个问题和下面的问题是重复的。Driver.getWindowHandles() is always returning 1 in IE11 on Windows 10, although there are two windows open Selenium我也尝试设置遵循指南https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver#required-configuration,但它不起作用这是我<