Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 8992

Capybara is a web-based test automation software that simulates scenarios for user stories and automates web application testing for behavior-driven software development. It is a part of the Cucumber testing framework written in the Ruby programming language that simulates various aspects of a web browser from the perspective of a real user.

1
vote
I think it depends largely on: whether this is a standalone testing app or part of a rails application. if part of a rails application, which rails version was originally / currently used. In rail …
answered May 2 '16 by Michael Durrant
1
vote
This will work: require 'capybara' require 'capybara/dsl' require 'selenium-webdriver' Capybara.configure do |c| c.run_server = false c.default_driver = :selenium c.app_host = 'http … ://www.google.com' end Capybara.register_driver :selenium do |app| Capybara::Selenium::Driver.new(app, browser: :chrome) end class RunIt include Capybara::DSL def runner visit '/' sleep 1 end end RunIt.new.runner …
answered May 14 '18 by Michael Durrant
2
votes
I would go with rspec using capybara as effectively the next 'layer' down. Your existing experience should make it relatively easy. Make sure your UI tests are backed with a reasonable amount of …
answered Apr 27 '16 by Michael Durrant
1
vote
This was due to a bug in chromedriver. Updating to a more recent version solves this. Specifically this was fixed in chromedriver version 2.24 at least for Ubuntu. A couple of other of our fea …
answered Feb 19 '17 by Michael Durrant
2
votes
, 100 or 1000 times to actually know if your 'fix' has worked. Also try and run in different local environments or a CI server environment. Use the ruby - rspec - capybara stack as capybara has had a … great deal of work to address timing issues and, relative to its cousins is relatively mature in this space. It also provides a great DSL With capybara, learn how to use, , wait: time at the end of …
answered Feb 18 '18 by Michael Durrant
2
votes
Create a script in your home directory, e.g. $ cat run_spec_100_times.sh cd ~/eq/lynx for i in `seq 1 100`; do rspec spec/features/survey_spec.rb done cd ~ Modify …
answered Nov 30 '16 by Michael Durrant
2
votes
After working on this for a few hours with a colleague and doing some in-browser debugging in Safari we came to the following conclusion: The element was not visible ('below the fold') and Safari w …
answered May 4 '16 by Michael Durrant
0
votes
This turned out to have a lot to do with the version of chromedriver I have been using. This was versions 2.7 which is 2-3 years old at this point. When you look at the version list at https://sites …
answered Feb 19 '17 by Michael Durrant
0
votes
end With all the methods such as complete_primary_driver and locators such as exits being defined in helper and Page Object files. I would also focus on rspec-capybara and question if the cucumber … because users never get how to write good specs with good programming practices. Before you know it you are explaining DRY and other concepts. So I just focus on rspec-capybara feature specs that run in …
answered Feb 12 '17 by Michael Durrant