Cucumber is a Behavior Driven Development (BDD) tool.
0
votes
1answer
12 views
How to find browser user-agent with selenium in ruby
I want to know current user-agent. I have used selenium2 with ruby
I have set user-agent in env.rb
Capybara.default_driver = :selenium
Capybara.register_driver :selenium do |app|
profile = ...
0
votes
0answers
7 views
Before/After hook without tag runs for tagged tests as well
I have a feature that has prod tests to be run on prod server. Its tagged @prod. I have other non-tagged tests that can run in test envs.
In env.rb I have a Before do .. end that opens a new browser ...
0
votes
0answers
17 views
Cucumber & watir scenario fails but passes in console
I have the following problem:
I am testing a report (click on generate report, wait for a pop-up window
to close and check that the report was downloaded)
Here's how my code looks:
# click on ...
0
votes
1answer
17 views
Debugging cucumber in Ruby error
I was able to debug my code with no issues until today. I don't know what I changed that could have effected this but now my
require "ruby-debug"
in my env.rb is causing the following when i try ...
0
votes
0answers
10 views
How to test a Rack::Directory serving static files with Capybara?
I'm using Rack::Directory.new to map a directory in the public folder directly to the website and serve static files.
My config.ru contains:
map '/pdfs/' do
run ...
0
votes
0answers
14 views
how to set profiles using parallel_tests gem
How do I specify a cucumber profile when using the parallel tests gem?
If I were to launch cucumber from the command line (using Jruby) I would do
Jruby -S cucumber -p profile_name
and using rake ...
0
votes
0answers
15 views
Getting Selenium::WebDriver::Android::Bridge.new() Errno::ECONNREFUSED Exception: Connection refused - Connection refuse
I am writing scenarios for android in jruby with cucumber-selenium.
But I am getting error:
Selenium::WebDriver::Android::Bridge.new()
Errno::ECONNREFUSED Exception: Connection refused - Connection ...
0
votes
1answer
28 views
TeamCity - Cucumber Acceptance Tests failing during day but passing in overnight build
We're testing a web app using Cucumber and the PageObject gem, running CI on TeamCity. We've hit on a problem that none of us can solve.
We're accessing two drop-downs whose combined contents ...
0
votes
0answers
17 views
Is it possible to execute/run cucumber test scripts from a network drive?
I'm needing to store cucumber test scripts in a shared network drive in order for teams in other timezones to be able to run these scripts from a shared network drive rather than their local ...
0
votes
1answer
21 views
fill in field in cucumber not able to access the input field
I have the below code as a .erb file:
<div class="gridster">
<form>
<fieldset>
<legend>Add Repository</legend>
<div class="field">
...
0
votes
1answer
12 views
Run cucumber headlessly with spork
I have my cucumber tests running fine without Spork using the webkit driver for my javascript scenarios.
I have the following in my env.rb file
if(ENV["WEBKIT"])
Capybara.javascript_driver = ...
0
votes
0answers
16 views
How to test Mobile app using cucumber-ruby with selenium2 webdriver
My website has two view one is web app and second is mobile app(ios and iphone). I have tested my web app with cucumber, with selenium web-driver and language is Ruby.
Now I want to test Mobile view ...
0
votes
0answers
11 views
email-spec: porting from rails 3.0 to 3.1
I'm porting an app from 3.0.x to 3.1.x and can't get my cuke features that rely on email_spec to work properly. Here's an example:
And "[email protected]" should receive 1 email
which yields a result ...
1
vote
2answers
24 views
Capybara: How To Assert A Given Number of Elements Exist
I've upgraded my whole stack from a Rails 3.0 based project to 3.1. I have specs passing but my features are now being a bit picky. The issue I'm currently having is this step:
Then /^I should see ...
1
vote
1answer
28 views
Why does browser.text.include? .should == true not work properly? returns incorrect value of false -cucumber -watir webdriver -rspec
Below is my script. As mentioned in the code comments below, when I execute the browser.text.include?(item).should == true from cmd prompt -> irb I correctly get the value true returned when ...