Hi,
I have a step that uses 'within' to scope the selector. But
unfortunately it causes an ambiguous match between the 'within' step
defined in web_steps.rb and the one I´m adding.
If I run cucumber with --guess, it´s all good. How can I use within in
my step without having ambiguous matches?
Then /^the "([^"]*)" radio button(?: within (.*))? should be chosen$/
do |locator, parent|
with_scope(parent) do
find_field(locator)['checked'].should be_true
end
end
And the "everyone" radio button within ".discussions" should be
chosen # features/groups/
create_new_group.feature:96
Ambiguous match of "the "everyone" radio button within
".discussions" should be chosen":
features/step_definitions/web_steps.rb:21:in `/^(.*) within ([^:]
+)$/'
features/step_definitions/web_steps_custom.rb:27:in `/^the
"([^"]*)" radio button(?: within (.*))? should be chosen$/'
You can run again with --guess to make Cucumber be more smart
about it
(Cucumber::Ambiguous)
features/groups/create_new_group.feature:96:in `And the
"everyone" radio button within ".discussions" should be chosen'
Then /^the "([^"]*)" radio button(?: within (.*))? should be chosen$/
do |locator, parent|
with_scope(parent) do
find_field(locator)['checked'].should be_true
end
end
Cheers,
Martin
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
Hi,
I have a step that uses 'within' to scope the selector. But
unfortunately it causes an ambiguous match between the 'within' step
defined in web_steps.rb and the one I´m adding.
If I run cucumber with --guess, it´s all good. How can I use within in
my step without having ambiguous matches?
Then /^the "([^"]*)" radio button(?: within (.*))? should be chosen$/
do |locator, parent|
with_scope(parent) do
find_field(locator)['checked'].should be_true
end
end
And the "everyone" radio button within ".discussions" should be
chosen # features/groups/
create_new_group.feature:96
Ambiguous match of "the "everyone" radio button within
".discussions" should be chosen":
features/step_definitions/web_steps.rb:21:in `/^(.*) within ([^:]
+)$/'
features/step_definitions/web_steps_custom.rb:27:in `/^the
"([^"]*)" radio button(?: within (.*))? should be chosen$/'
You can run again with --guess to make Cucumber be more smart
about it
(Cucumber::Ambiguous)
features/groups/create_new_group.feature:96:in `And the
"everyone" radio button within ".discussions" should be chosen'
Then /^the "([^"]*)" radio button(?: within (.*))? should be chosen$/
do |locator, parent|
with_scope(parent) do
find_field(locator)['checked'].should be_true
end
end
Cheers,
Martin
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.