0
votes
1answer
101 views

Cannot fill in test data into a form with rspec, capybara and selenium

I'm testing my Ruby on Rails 3.2 App with RSpec, Capybara and Selenium (Used driver: webkit and poltergeist). I will try testing the following code: scenario 'ask a question', js: true do visit ...
1
vote
1answer
39 views

count images in a page using capybara

I want to count the images displayed in a page using capybara.The html code displayed below.for that i use following code to return the total count but the count returns 0.In my page i have 100 more ...
0
votes
1answer
29 views

capybara & cucumber css locator not found

I am new to cucumber and capybara and I am puzzled with the following error: When I click the "Search" button # features/step_definitions/web_steps.rb:9 Unable to find button ...
0
votes
1answer
61 views

How to get Capybara/Selenium to play nicely with SSL in local environment

I'm using RSpec, Capybara and Selenium to test my local Rails application. Capybara by itself is working fine. My problem is that I use a forced SSL connection in most of my application. The kind ...
0
votes
0answers
146 views

Trying to click a button on a simple modal window using capybara, cucumber and selenium

The website I am testing submits a form, once the form is submitted a simple modal window displays to thank the user with a close button. I can't find a way to click that close button for some ...
0
votes
0answers
66 views

Cucumber/Capybara: Could not launch browser window

I am using Cucumber/Capybara framework using Jruby. I have setup all the things required to run the test. When I execute it, no error message is displayed, but webdriver window also does not come up. ...
0
votes
0answers
88 views

chromedriver with selenium on Rails

I wanted to do some javascript integration tests for my app (I use Chrome as a browser) but Capybara is not detecting the Selenium driver. Here is my test suite: Linux (Ubuntu 12.10) RoR 3.1 Rspec ...
0
votes
0answers
111 views

Using selenium action builder to test Drag and Drop using CSS transforms

I've currently implemented a drag and drop solution which uses a CSS transform to move an object while it is being dragged instead of using native DnD (browser reasons) or changing x,y positions. I'm ...
0
votes
0answers
223 views

capybara + selenium + rspec + element not found

I m using capybara + selenium + rspec to test my application. I have a page, none of whose elements are manipulated by ajax or javascript(hide/show/toggle). When ever i try to submit the form on the ...
0
votes
1answer
111 views

how to interact with javascript JSON response with rspec and capybara

I'm using rspec and capybara and would like to test a JSON response that I get in response to for example click_button. I understand that I can use :js => true but I would like to parse back the JSON ...
0
votes
0answers
28 views

capybara with selenium find selector

I do have the following HTML snippet: <div id="content"> <div id="left"> <div id="navigation"> <ul id="menu"> <li ...
0
votes
1answer
176 views

Delete browser Cookies using Capybara

Deleting browser cookies using capybara is not working while i changed my code for maximizing browser window. Initially i used following code.It works properly in case of deleting cookies browser = ...
1
vote
0answers
162 views

Cucumber/Capybara/Selenium - Setting the cookies

For my test case, I tried setting the cookies with following ways, But it is not getting set 1)browser = Capybara.current_session.driver.browser browser.manage.add_cookie :name => "xxx", :value ...
1
vote
1answer
148 views

Capture video with Poltergeist, PhantomJS and Capybara

Is it possible to capture video with PhantomJS in combination with the gems Poltergeist, Capybara and Cucumber? I have used the Headless gem previously, which put a video in a specific folder in case ...
0
votes
3answers
231 views

How to replace Iceweasel with Firefox for headless Cucumber/Capybara tests?

I am running a set of Cucumber/Capybara tests with Selenium, using the headless gem in a Debian VM. For some reasons that I won't go into here, I would like to replace Iceweasel with a real Firefox ...

1 2 3 4 5 19
15 30 50 per page