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 8354387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:32:02+00:00 2026-06-09T09:32:02+00:00

I have a cucumber test suite I want to run in Internet Explorer environment

  • 0

I have a cucumber test suite I want to run in Internet Explorer environment the problem is that I am on a linux machine. So I thried to follow this, somewhat outdated, guide.

I’m using a local VM to try and run the tests on and there I have started the standalone selenium server which tells me that:

RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wb/hub

Now this seems a bit odd that I have localhost here as connect to but no matter it’s on the same physical machine so should pose no problems or?

Well next in my env.rb I have defined the following:

Capybara.app_host = "http://hostname:4444"
Capybara.default_driver = :selenium
Capybara.register_driver :selenium do |app|
  Capybara::Selenium::Driver.new(app,
    :browser => :remote,
    :url => "http://MYNETWORKIP:4444/wd/hub",
    :desired_capabilities => :internet_explorer)
end

as the guide suggests. But when I run the test I get the following error:

bad URI(is not URI?): 127.0.0.1:4444/wd/hub (URI::InvalidURIError)

I suspect it has something to do with me being behind a proxy since I needed to do some special settings for Firefox(iceweasel) to run.
Those settings were:

Capybara.register_driver :selenium do |app|
  profile                                       =   Selenium::WebDriver::Firefox::Profile.new
  profile["network.proxy.type"]                 =   2
  profile["network.proxy.autoconfig_url"]       =   "http config adress here"
  profile["network.proxy.no_proxies_on"]        =   "localhost, 127.0.0.1, #{%x[hostname].gsub("\n", "")}"
  profile["network.proxy.http"]                 =   "proxy http address here"
  profile["network.proxy.http_port"]            =   3128
  profile["network.proxy.ssl"]                  =   "ssl proxy http address here"
  profile["network.proxy.ssl_port"]             =   3128
  profile["network.proxy.share_proxy_settings"] =   true
  Capybara::Selenium::Driver.new(app, :profile => profile)
end

Spent alot of time trying to get this to work now so I need some help
Thx in advance

EDIT:

Realized that some versions might be of help.
From gemfile:

 cucumber (1.1.9)
 rails (2.3.11)
 selenium-webdriver (2.20.0)

EDIT 2:

Further tries with changing the url to my network ip address gives me another error:

both URI are relative (URI::BadURIError)

EDIT 3:

Now with the help of Jon M I get a bit further but encountering:

 unexpected response, code=404, content-type="text/html"

EDIT 4:

Latest update:

Changed the connection settings in my env.rb

This gives me a connection to my virtualbox and starts up my IE browser YAY!
BUT! It cannot connect to the application.

  • 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-09T09:32:04+00:00Added an answer on June 9, 2026 at 9:32 am

    I expect the ‘bad URI’ message is due to the missing protocol – try prefixing ‘127.0.0.1:4444/wd/hub’ with ‘http://’

    Edit (in response to your update):

    Just spotted the address… 127.0.0.1 refers to localhost, but if the Selenium server is running on a different machine, surely you should be using the IP address of that machine?

    e.g. http://some.other.ip:4444/wd/hub

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a step definition in my cucumber test suite that authenticates the user
I have a cucumber test (using Capybara) that needs to follow a link in
I have 2 cucumber scenarios that simulate paperclip image upload. I want to remove
I have an user (administrator) already existed in database. I run the cucumber test
I have recently updated the Cucumber gems ('cucumber' and 'cucumber-rails') on my machine and
I use cucumber to run integration tests. I have a very large (30,000+ record)
I am using Cucumber + Webrat + Mechanize adapter and want to test contents
i'm using a before filter: authenticate_user! on my pages. I have cucumber tests that
Is it possible to cancel a cucumber test while it is running? I have
I am using capybara and selenium to run my cucumber test on my local

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.