V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
vtoexsir
V2EX  ›  Ruby

selenium webdriver 调起来 firefox 浏览器却无法访问设定的网址

  •  
  •   vtoexsir · Jan 16, 2016 · 4774 views
    This topic created in 3754 days ago, the information mentioned may be changed or developed.

    require 'selenium-webdriver'
    b = Selenium::WebDriver.for :firefox
    b.get 'http://www.baidu.com'

    如上代码,前几天还运行得好好地,没有任何问题。
    今天怎么就不行了?
    系统是: yosemite
    表现是:
    只能讲 firefox 浏览器调用起来,但浏览器地址栏里不显示设定的网址(即 http://www.baidu.com);
    就这样一直等待,直到超时报错。如下图:
    http://i.imgur.com/f0sVtFJ.png

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1066 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:52 · PVG 06:52 · LAX 15:52 · JFK 18:52
    ♥ Do have faith in what you're doing.