我想使用在rdoc中看到的openWindow()方法打开一个新窗口,但每当我尝试运行我的代码时,都会被告知该方法不存在。用Ruby打开一个新窗口
require 'rubygems'
require 'selenium-webdriver'
$browser = Selenium::WebDriver.for :firefox #I've tried chrome too to the same effect
$browser.navigate.to("http://google.com")
$browser.openWindow("http://cnet.com","ASDF") #This doesn't work.
$browser.open_window("http://cnet.com","ASDF") #This doesn't work either.
这将不胜感激,如果有人可以设置直接记录如何使用此。
作为一个方面说明,对于我的预期应用程序,我没有最终使用此功能,因为我希望使用比支持的窗口更多的功能。 – Seanny123