A Capybara driver for headless WebKit so you can test Javascript web apps.
Questions tagged [capybara-webkit]
470 questions
0
votes
0 answers
Ruby Open3.popen3 Does Not Return STDOUT on Windows 7 (capybara-webkit)
Whenever I attempt to run tests against capybara-webkit, it is not able to find the listening port, so it attempts to use 0, which results in the following error:
Failure/Error: visit user_path
Errno::EADDRNOTAVAIL:
The requested address is not…

Shadowcat
- 423
- 4
- 8
0
votes
1 answer
How do I customize the spreadsheet gem/output?
I have a program using the spreadsheet gem to create a CSV file; I have not been able to find the way to configure the functionality that I need.
This is what I would like the gem to do: The model number and additional_image field should be "in…

jcuwaz
- 187
- 3
- 14
0
votes
1 answer
not able to find installed Gem in ruby program
hi getting error which is not understand able i am new to ruby so please help .
i checked all thing which is possible for me.
require 'rubygems'
require 'selenium-webdriver'
require 'test/unit'
class SeleniumTest <…
0
votes
2 answers
filename too long when trying to read and write from an array of absolute images
Have a capybara script that among other things downloads absolute image links.
When trying to write those images to disk I receive an error:
File name too long
The output also includes a long list of all the image URLs in the array. I think a…

jcuwaz
- 187
- 3
- 14
0
votes
1 answer
Integration Testing HTML Special Characters
Kind of a strange one, but in my views I have a tick (✔) and a cross (×) used as links (in lieu of images). Is there any way of finding these elements and testing them using RSpec and Capybara-webkit, or should I try and target say the title…

Alex Lynham
- 1,318
- 2
- 11
- 29
0
votes
1 answer
Performance issues after upgrading to Capybara Webkit 1.0
We are currently upgrading our Rails 3.2 (Ruby 2, Mongoid 3.1.5) App to Capybara Webkit 1.0.0 from 0.13.1. After the gem upgrade we fixed all new failing specs to comply with Capybara 2's new features and (default) settings. That went quite well.…

Phil
- 529
- 5
- 13
0
votes
0 answers
Cannot transition to route with afterModel hook using capybara-webkit or selenium
I have an Ember route that fetches it's model from the store (ember-data) and then needs to reload it from the server to populate attributes that were not sent on the index action.
To implement this, I added an afterModel hook into the router, and…

Stuart
- 644
- 1
- 6
- 13
0
votes
1 answer
Configure Rails 4, MongoDB, Cucumber, Capybara
I am currently in the process of setting up my first Mongodb, Rails 4 environment and need to configure the gem before running bundle install. Here is my gem file.
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github:…

Xdrone
- 781
- 1
- 11
- 21
0
votes
0 answers
cabybara-webkit not evaluating response javascript in rails application under test
Within a rails app, I have an image (image_submit_tag) on a page that, when selected, sends an ajax request to server. The server receives the request, Does The Right Thing and responds with correct javascript. The correct javascript replaces one…

rkgordon3
- 141
- 1
- 4
0
votes
2 answers
Ruby on Rails hosting with gem "capybara-webkit"
I want to deploy a RoR application that uses a gem capybara-webkit. Is there any free RoR hosting site capable of using that gem?
Heroku is not capable of using it: Is it possible to run capybara-webkit (i.e. forked webkit_server) on Heroku…

mirelon
- 4,896
- 6
- 40
- 70
0
votes
1 answer
Rails 4 integration testing cannot find link
I am using rails 4 and capybara 2.1.0 and rspec 2.0 to develope a user registration model
here is the contents of my spec
visit register_path
fill_in 'user[full_name]', with: "xxxx"
click_button 'Register'
expect(page).to find_link("Send hosting…

Dinkaran Ilango
- 513
- 1
- 4
- 11
0
votes
1 answer
Ember transition triggered by capybara test
We are writing an Ember.js app, and on one page have an Ember.Select whose selections are models from the Rails database. The value on the select is bound to an observer on the controller that changes the view based on the selection. This works…

Stuart
- 644
- 1
- 6
- 13
0
votes
1 answer
Testing for javascript alerts with Capybara webkit
i am using capybara , selenium ,webkit,and cucumber.
How I can dismiss the popup in headless browser? It always by default accept "ok". My test case works great selenium(I use this code page.driver.browser.switch_to.alert.dismiss) but fails for…

user588324
- 310
- 1
- 6
- 19
0
votes
1 answer
Capybara server can't access data created in a spec
I am running Sinatra, Capybara and RSpec. I am testing javascript interactions with webkit headless browser. I am using factory girl to create data that I need to be present for my test. I then use capybara to perform interactions with my…

Stewart
- 3,023
- 2
- 24
- 40
0
votes
3 answers
Problems installing capybara-webkit 1.0.0 in Rails 3.2.10 on Ubuntu 10.04
Issue
I am unable to get Capybara-webkit 1.0.0 to install into my Rails 3.2.10 project.
When I run bundle install I get the following errors.
Also when I roll capybara-webkit back to version 0.12.1 (May 30, 2012) it installs fine.
Note: I am having…

Kevin Baker
- 1,187
- 3
- 12
- 22