Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9280615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:54:50+00:00 2026-06-18T17:54:50+00:00

Okay, I’m running into a strange error with a cucumber scenario on a Rails

  • 0

Okay, I’m running into a strange error with a cucumber scenario on a Rails 2 app.

We’re running our Cucumber suite under Capybara Webkit. This, for the most part is working fine, but I have a test that’s failing during an ajax transaction because it can’t see the element that should be appearing on the page.

I initially though this was a race condition and upped the max timeout, but no matter how long we wait around, the element is not found.

So I wanted to see it in action, so I tried to switch to Selenium so I could watch the whole test end-to-end.

However, whenever I try to run it through selenium, it fails right out of the gate during the first setup step with the error:

Given I am logged in # features/step_definitions/users/authentication_steps.rb:5
  HTTP request path is empty (ArgumentError)
  /home/dvg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1860:in `initialize'
  /home/dvg/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2093:in `initialize'
  ./features/support/assumption.rb:48:in `login'
  ./features/step_definitions/users/authentication_steps.rb:7:in `/^I am logged in$/'
  features/requests/user_requests_a_thing.feature:4:in `Given I am logged in'

I have messed with every setting I can think of to try and get it working.

I have tried:

  1. Switching from Firefox to ChromeDriver
  2. Defining App Host
  3. Defining a NO_PROXY environment vriable in case the proxy server was getting in the way (which I think is something Selenium Webdriver looks at)
  4. Refactoring to use path_helpers instead of visit “/login” style steps
  5. Updating the bundle

Special Considerations:

  1. We are a rails 2.3 app that just converted from Ruby 1.8.7 to 1.9.3
  2. We are using the latest Cucumber/Capybara
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T17:54:52+00:00Added an answer on June 18, 2026 at 5:54 pm

    It was the no proxy variable, but it needed to be

    ENV['no_proxy'] = "127.0.0.1"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, I have the following create action #posts_controller, nested resource under discussions def create
Okay - I have a dilemma. So far my script converts page titles into
Okay, I am giving up. I cannot fix error message when I run my
Okay so I am trying to port my Android app that is currently using
Okay... so I have a fairly interesting error... I declare a FileWriter called file,
Okay. So I'm creating this app and I'm really happy with it apart from
Okay, so I'm rebuilding an old photo gallery management app that I built a
Okay, next PHPExcel question. I have an HTML form that users fill out and
Okay this question is very simple: I have a facebook page, and a website.
Okay, I feel a bit foolish for having to ask this but I guess

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.