2010-08-19 68 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) 
相关问题