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

  • Home
  • SEARCH
  • 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 6180685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:53:15+00:00 2026-05-24T00:53:15+00:00

Basically I want the scenario outline to loop through all of the various combinations

  • 0

Basically I want the scenario outline to loop through all of the various combinations so that I don’t have to write a bunch of scenarios. I want to have it visit the starting page and then check to see if the links are there however I’ve hit a barrier.

Cucumber feature

    Scenario Outline: As a user I need links in order to navigate the site
    Given I am a '<user>'
    When I am at the <page> page
    Then I should see a link to '<link>'

    Scenarios: As a user that is not logged in
        |       user         |   page    |  link   |
        | not_signed_in_user |    /      | contact |

Cucumber Feature Steps

    Given /^I am a 'not_signed_in_user'$/ do
         @user = nil
    end

    When /^I am at the (.+) page$/ do |starting_page|
         visit starting_page
    end

    Then /^I should see a link to (.+)$/ do |link|
         pending
    end

I need to use something like:

    response.should have_selector('a,':href => link_path,
                                     :content => link )

but that won’t work dynamically as it will just check for link_path…

  • 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-24T00:53:16+00:00Added an answer on May 24, 2026 at 12:53 am

    It sounds like you want to use send("#{link}_path") here. That would generate the link using the routing helper which I think it is what you want.

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

Sidebar

Related Questions

I have a scenario where I want to parse through all the values displayed
Here is the scenario. I have a database that is single function basically to
I have a cucumber scenario outline for testing a webservice that is similar to:
I basically want the same functionality as facebook, twitter and all those other infinite
I basically want to open a browser window from Word using VBA that does
I have run into a blocking scenario and need help. The problem is basically
I have an Alfresco Share client-side Form in a registration scenario and I want
So here is the scenario: i have a series of different repository classes that
The Scenario I have a table on a web page that is dynamically generated
Basically, I have the following scenario: ViewModel: FooViewModel : BaseViewModel , BarViewModel : BaseViewModel

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.