我想在新标签页中打开一个链接。我正在使用watir,watir-webdriver和chrome。 我需要按ctrl + T.我该怎么做?
这没有帮助 -
browser.element.send_keys [:control, 'T']
例外 -
C:/blah/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/keyboard.rb:48:in assert_modifier': "T" is not a modifier key, expected one of [:control, :shift, :a from C:/blah/selenium-webdriver-2.33.0/lib/selenium/webdriver/common/keyboard.rb:25:in press'....
答案 0 :(得分:2)