Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [capybara]

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 ...

0
votes
1answer
23 views

send_keys option do not work in firefox headless mode using Capybara

<span class="Select-some-wrapper" id=“id—value"> <div class="Select-placeholder">Name</div> <div role=“xx” aria-expanded="false" aria-owns="" aria- activedescendant=“id—value" ...
1
vote
1answer
51 views

How to emulate right click options by Capybara?

I want to be stand on a specific element in the page then I make right click and choose one option from the menu appears
2
votes
1answer
36 views

What would switching from ruby rspec to minitest involve?

I see that minitest is now included in Ruby, just require the file. Replaces unittest. I'm still using rspec everywhere 'cos I came from Ruby on Rails. minitest looks just like rspec witht the ...
1
vote
1answer
119 views

How to use capybara against an external site without rails or rspec?

I want to use capybara to drive a web browser for an application I have written. I don't want to run rspec tests, I want to use the browser to navigate and perform actions. How do I set this up to ...
0
votes
2answers
317 views

Page Object Model with Ruby and Selenium(Capybara)?

So I've written a good amount of scripts using Capybara with Selenium Web-driver. It's going well but my automation tests feel more like step by steps scripts, without much Object Oriented design or ...
0
votes
1answer
232 views

Why do rspec-capybara chrome tests run headless fail on my mac and how to diagnose/fix it?

My colleague with a windows machine doesn't have this issue with the same code. All my tests that pass normally when run in chrome - fail when run headless at the point where the user presses save ...
1
vote
1answer
66 views

Why are intermittent browser automation failures hard to fix and how to overcome that?

They seem to pop up almost randomly and with varying amounts of frequency. How to avoid them and fix the ones we have?
3
votes
1answer
167 views

Non-headless Automation Testing on CI Server?

So im in a bit of a conundrum. I have a Rails project which i've written Automated tests for in Capybara using ChromeDriver/Selenium. It works great, but is quite long. I also have headless chrome ...
1
vote
1answer
248 views

How to use xvfb to run my automated rspec-capybara chromedriver tests?

I read through this and I don't quite get it. If I currently run my rspec capybara tests using chromedriver, how will I change that to xvfb ? I see the examples like Xvfb :1 -screen 0 1600x1200x32 ...
1
vote
1answer
30 views

ERROR at the time of capybara installation

I am trying to setup environment for Web Testing using Capybara & Cucumber. I am hitting command "gem install capybara" to install but getting an error on the terminal is: ERROR: Could not find a ...
0
votes
1answer
145 views

Selenium integration testing on Node?

So im pretty used to Automated integration testing on Rails, however i've been trying to move into learning Node.js and getting used to writing integration tests on that. Im used to using Capybara, ...
0
votes
1answer
106 views

How do I stop my rspec capybara tests failing intermittently

The intermittent failures are hard to pin down and they can be in many different tests. Often you can see the element you are targeting in the browser but the program just doesn't seem to be in sync ...
0
votes
1answer
27 views

Running tests in chrome but just getting data;. in every browser window

My test suite (ruby, rspec, capybara) was able to run browser based feature tests before but they somehow are broken now, and none pass. This only happens on my Ubuntu machine. On other machines ...
0
votes
1answer
268 views

Are there advantages to using Capybara with RSpec + Selenium?

I want to create some front-end automation for our web application. My plan is to use RSpec as the framework and Selenium to drive the browser. I see a lot of information (blog posts) around using ...
4
votes
3answers
170 views

Advice for an experienced manual tester for working with Ruby automation

I am manual QA engineer with 22 years of experience. Now I need to work on automating a Web App in Cucumber/Ruby using Capybara libraries using Selenium to drive the browser (Firefox). Rspec for the ...
2
votes
2answers
703 views

What is the use of section in siteprism? Is it similar to page object model of selenium webdriver?

I have been doing selenium automation in C# for almost 1 year. I need to learn siteprism using capybara. When I was going the documentation of siteprism i can't relate section with page objects. I ...
3
votes
2answers
413 views

How can I run one spec 100 times using the command line?

We're getting intermittent failures. Hope can I run one test 100 times to see how 'stable' it is?
1
vote
1answer
485 views

AWS EC2 - Cucumber, Selenium-Webdriver, Capybara, Ruby, **Jenkins** - Not a File “/usr/bin/chromedriver”

I was hoping to get a web automation test script working on an AWS EC2 instance running Ubuntu 16.04 LTS with Ruby; Capybara and Cucumber frameworks. I am intending to use Selenium-Webdriver as my ...
1
vote
2answers
678 views

Preferred methods of finding elements using Capybara + Poltergeist

Is there sort of a hierarchy as far as "good automation test design"? Especially when it comes to finding elements. Since sometimes "click_button" or "choose" (for radio buttons) just does not work (...
4
votes
2answers
132 views

Deleting created data from Automated Tests?

So what's the best way to go about this? Lets pretend im testing localhost, or a remote site. That either has a mysql or postgreSQL database. I have a few automated tests that create things (X,Y,Z ...
0
votes
1answer
846 views

Why does my capybara element.click not work in Safari?

I am using rspec-capybara for my tests and I am clicking on a button which had been placed there through Javascript (ajax). Clicking on the button works when using WebDrivers for Chrome, Firefox and ...
3
votes
1answer
26 views

Where should 'requires' be kept with regards to rails Automated testing?

I've seen both usages: As in say im testing a web app using Capybara/Rspec? I seen it edited in the spec_helper.rb file: 'require capybara/rspec' require 'capybara/poltergeist' Capybara....
0
votes
2answers
557 views

Easy way to switch to headless automated testing after normal browser test?

Sorry for the confusing title, i've been really trying to find a good solution to writing automated tests for maintenance projects (To identify areas that potentially break after doing upgrades to ...
5
votes
2answers
208 views

Writing Automated tests that don't need Cucumber?

So i've been using Cucumber w/Capybara and Poltergeist to write automated tests for awhile now. It works pretty well and I enjoy it and it mostly makes sense (still learning it of course). However Im ...