无法在60秒内获得稳定的firefox连接(127.0.0.1:7055) - Rspec

时间:2016-11-18 11:15:39

标签: ruby-on-rails ruby selenium-webdriver rspec rspec-rails

  

注意: selenium-webdriver(2.24.0),Mozilla Firefox 45.0.2,rails(3.2.19),ruby(1.8.7)

customer_request.rb

  before(:each) do
     @srtuser = login_as(:customer)
  end

  after(:each) do

  end

  def login_as(role)
    u = User.where(:email => "testing@test.net").first
    visit new_user_session_path
    fill_in "user[email]", :with => u.email
    fill_in "user[password]", :with => "changeme"
    click_button "Sign in"
    page.should have_content("#{u.visible_name}")
    u
  end
  

错误:失败/错误:访问new_user_session_path        硒:: webdriver的::错误:: WebDriverError:          无法在60秒内获得稳定的firefox连接(127.0.0.1:7055)        #./spec/requests/customer_spec.rb:37:in`login_as'        #./spec/requests/customer_spec.rb:28

我尝试降级并升级firefox没有取得任何成功

0 个答案:

没有答案