2010-08-19 67 views
0

我是Selenium(Ruby)的新手。爲什麼我無法通過Ruby腳本啓動URL?

我嘗試推出谷歌主頁如下:

@selenium = Selenium::SeleniumDriver.new("localhost", 4444, "*firefox", "http://www.google.com", 10000); 
@selenium.start 

然而,腳本運行後,它會啓動火狐以下網址:

http://localhost:4444/selenium-server/core/Blank.html?start=true 

我無法找出原因。

回答

0

我認爲你需要的按鍵爲您的哈希,如

Selenium::Client::Driver.new(:host => 'localhost', :port => 4444, etc) 
相關問題