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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:54:35+00:00 2026-05-18T06:54:35+00:00

I have cucumber feature … Given I am on my domain page When I

  • 0

I have cucumber feature

...
Given I am on my domain page
When I press "send data to external domain"
Then I should be on the externel domain page
...

In production and development enviroments “My domain page” (www.example.com/mydomainpage) redirects user to “external domain page” (www.externaldomain.com/page). But in test enviroment cucumber cut off domain part of url:

Redirected to http://www.externaldomain.com/page
Completed 302 Found in 17895ms


Started GET "/page" for 127.0.0.1 at 2010-10-11 19:06:48 +0400
  SQL (72.0ms)  ROLLBACK

Is it possible to set up cucumber to redirect to various domain, not only current server domain?

P.S. Cucumber + Capybara + Rails + Rspec

  • 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-05-18T06:54:36+00:00Added an answer on May 18, 2026 at 6:54 am

    There are many ways to do such thing (Selenium, Culerity and etc…). Best way is using capybara-mechanize, the RackTest driver for Capybara with remote request support. This is very cool tool!

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

Sidebar

Related Questions

If I have a simple cucumber feature and scenario , like this (example code
I have a step in one of my cucumber features called Then the director
Currently, I have this Rake::Task['FEATURE=features/Authentication.feature cucumber'].invoke but id doesn't work.. says Don't know how
In my feature file I have something like this: Scenario: Things Given the table
I have many cucumber feature files, each consists of many scenarios. When run together,
I have configured cuke4duke and Cucumber with maven and written feature and step definition
I have a cucumber feature at features/object/create_object.feature. It passes when I execute all of
I'd like to have a Cucumber feature testing the rememberable functionality of devise (a
I have a simple feature: Feature: User can see the welcome page Scenario: User
I have recently updated the Cucumber gems ('cucumber' and 'cucumber-rails') on my machine and

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.