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 ...
0
votes
1answer
23 views

How to run rails request specs on a cloud deployment?

I am new to rails testing. Two days of running down leads with Google has turned up no solutions for what ought to be a frequent need. If I write request (integration) specs to use a Selenium or ...
0
votes
3answers
60 views

Need automated Rails gem alternative to Mechanize for non-testing purposes

I am writing a script that automates the completion a web form in my Rails app using the form entries given on the client side. However, this site uses Javascript, and so Mechanize is out of the ...
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
118 views

testing angular js/jasny-bootstrap based upload button with hidden fields through capybara

I am attempting to test a jasny-bootstrap / ng-upload based upload button. Unfortunately the elements are masked, so Capybara 2.0 fails to click the right elements. I attempted to fix this using the ...
0
votes
0answers
41 views

Selenium, rspec and AJAX in rails application

I have a strange problem. I start the rails server in the test environment and run some tests with selenuim. I have a lot of AJAX in my app. For all but one model(Log) all tests are green. For the ...
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
2answers
122 views

while running rake spec error Selenium::WebDriver::Error::WebDriverError: unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)

while running rake spec in rails i get the below error: Failure/Error: visit "/users/sign_up" Selenium::WebDriver::Error::WebDriverError: unable to obtain stable firefox connection in 60 ...
0
votes
0answers
94 views

Change tests from selenium to poltergeist or headless webkit

I have tests that look like this. @driver = Selenium::WebDriver.for :chrome @driver.find_element(:id, "user_email").send_keys user.email @driver.find_element(:id, "user_password").send_keys ...
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 ...
0
votes
1answer
194 views

how to select the first element from a dropdown. RoR/Capybara/Selenium

So this code was working perfectly fine, until I recently updated my selenium webdriver: When /^I search for (.*)$/ do |term| term = " " if term == "blank" step "I fill in search with ...
0
votes
2answers
65 views

Capture screencast of rspec selenium browser test

Is it possible to take a screencast of the firefox browser screens as they are controlled by a capybara test with the selenium web driver? I looked at the sauce driver (1) but wasn't too sure about ...
0
votes
1answer
73 views

Selenium Server - how to run tests I've written (and converted into ruby-rspec)?

I have a large number of unit tests contained within a few Suites in the Selenium firefox IDE. I've exported the individual tests to ruby/rspec and saved the results. I've also exported the test ...
0
votes
0answers
198 views

Anonimity with selenium webdriver using capybara,firefox profile

Everytime when I use vpn while doing tests with capybara selenium webdriver firefox on windows- remoted sites allow anonimity, but when I use proxy in capybara selenium webdriver firefox (turn off ...
0
votes
0answers
84 views

Is anything wrong with Selenium, while testing proxy with Capybara

When lunching tests with Capybara, Selenium, Firefox (windows) I am using this type of code Capybara.reset_sessions! Capybara.register_driver :selenium do |app| profile = ...
2
votes
1answer
157 views

$.ajax delete request not sending data parameters in capybara-webkit

I'm finding that my ajax DELETE requests are not sending data parameters to the controller when I execute them through capybara-webkit. However, the data parameters do get sent (and the test passes) ...
0
votes
1answer
88 views

Capybara's existing test + using Selenium to run the tests against a remote server

first of all, excuse my bad English, and execuse my lake of knowledge, am totally new to web development. I wrote some Tests (Capybara & Rspec), and i am trying to run them against a remote ...
2
votes
0answers
201 views

Selenium failing with EOFile error with chromedriver on linux

I have an automated build machine running cucumber tests on an EC2 instance. I am using capybara (1.1.4) with selenium-webdriver (2.31.0) and chromedriver (25.0.1364.172-187217). The tests are run ...
0
votes
0answers
95 views

checking a checkbox having random ids in cucumber-rails

i have a scenario where i want to check/verify that the checkbox is disabled/checked.i have all the required steps which uses id of the element to verify/check the checkbox.Now i have a checkbox whose ...
1
vote
1answer
160 views

Errors getting Selenium running on rails 4 with Safari, chrome or Firefox

I am trying to get selenium (thru Capybara) working on a rails 4, ruby 2.0.0 environment using rspec. I have tried using every browser by setting config settings in my spec_helper.rb. Example with ...
1
vote
1answer
91 views

Jquery not executing in ruby on rails

I am new to ruby on rails and also jquery . I am trying to write an app in ruby that executes a jquery version I have jquery - rails (2.2.1) gem and also rails (3.2.12) . I have used a jquery ...
0
votes
0answers
114 views

Capybara + authlogic: session persistant

I have been searching exhaustively in StackOverflow, but can't find any appropriate solution. I am testing my javascript in a Ruby on Rails app, using RSpec + Capybara and Selenium driver. For ...
1
vote
2answers
120 views

multiple instances of cucumber for 3000 scenarios

I have a test pack consisting of more than 3000 scenarios.now the problem is that when i run the scenarios in one shot ..it takes approx 10 hours to complete,i want to divide the scenarios in 4 ...
1
vote
2answers
74 views

fill_in in tinyMce

I want to fill in text in a page having Tinymce Editor for functional Automation testing using Cucumber and selenium driver.I am able to open the image dialog but unable to fill in the textfield ...
1
vote
0answers
80 views

capybara and reloading iframe with javascript

so I have a rails app with an IFrame, and at some point I reload that IFrame via javascript and it's content changes. So I'm trying to test that behavior with following code sleep 3 ...
1
vote
1answer
322 views

How to use DatabaseCleaner[:active_record].strategy = :transaction with selenium

I have written cucumber test cases and now i need to rollback database not the existing one. I have use selenium web-driver with capybara 2.0.2. When i have tried with: ...
1
vote
1answer
250 views

Resize Chrome's window while using Capybara

I use Capybara (with selenium) and Chrome, and RSpec. But i would like to change width of browser in some tests. What is the solution in this case? spec/spec_helper.rb ENV["RAILS_ENV"] ||= 'test' ...
0
votes
0answers
101 views

How can I run Selenium (rspec2/capybara) tests as if though dial up or mobile connection?

I'd like to run my test suite as if I were on a mobile or dial up connection. I'm using a rails stack with rspec2, selenium. Any advice?
2
votes
0answers
88 views

Capybara convert html tags to html entities written in javascript

I have some html tags written in javascript code and when running the code in browser it works fine but when the same code run with capybara then the html tags has been converted to html entities. ...
0
votes
1answer
163 views

Rails, RSpec, and Capyara/Selenium - how to use the Selenium click_at method to click on exact x,y coords?

I'm trying to test clicking on an exact coordinate in an HTML page using RSpec and Selenium in a Rails project. However, the documented Selenium click_at method appears to be unavailable through any ...
1
vote
2answers
333 views

How to prevent Firefox from starting in safe mode?

Running a Rails test suite with Selenium often opens Firefox with the "Start in Safe Mode?" dialog. Is there a way to either 1) disable this, or 2) add a script that will answer "No" if the dialog ...
5
votes
2answers
565 views

Upgrading capybara from 1.0.1 to 1.1.4 makes database_cleaner break my specs

I have an old Rails application upgraded to version 3.2.11 that has a lot of request specifications written using capybara version 1.0.1 and running using the selenium driver. The database are cleaned ...
0
votes
1answer
122 views

Selenium, examples of how to select links, some in TD's, some not?

What are some good examples of how to select links using Selenium? Some of my links are in tables, others with LI's and others have ID tags. What options do I have for selecting 'A' Anchor tags? ...
1
vote
2answers
225 views

include file ruby selenium

I have multiple ruby test cases for selenium-webdriver and all the files are sharing the same functions. is there any way to create a global file and include the file to these test cases instead of ...
3
votes
1answer
787 views

How to set Browser Window size in Rspec (Selenium)

I am working on Ruby On Rails integration test using capybara, Selenium. How to set testing Browser Window Height and Width? I searched, but nothing work well for me. I tried following code. ...
18
votes
1answer
1k views

Capybara tests fail with Timeout::Error in the first test when using Google Maps

I am testing with RSpec + Capybara + Selenium (Firefox). No matter what subset of my acceptance tests I run, the first one fails (next tests do work correctly) with "reason" like this: ...
0
votes
1answer
121 views

Devise user creation fails during Capybara integration testing (and Selenium webdriver)

I'm trying to create a user during an integration test to use for some operations. I'm using devise with :confirmable. The code is the following: user = User.create({username: "user1", password: ...
0
votes
0answers
47 views

How do I visit the mobile format web page using Capybara in my Rails integration tests?

In my Rails app, I'm using jQuery mobile to display different views to the user if he's visiting the site from a mobile device. I set the request format to :mobile whenever there is an "m" in the url. ...
0
votes
2answers
187 views

Truble with Cucumber and URI::InvalidURIError

I am trying to start my cucumber tests. I get the error: bad URI (absolute but no path): http:// (URI::InvalidURIError) /home/de..........:common.rb:146:in 'split' /home/de..........:common.rb:211:in ...
-3
votes
1answer
194 views

How can I use cucumber/ruby to hover over an element in order to make it visible so I can click a link? [closed]

Page has products, when I hover over the image it shows the product quantity and buy now button. I want to click on quantity and buy now button after hover over. ...
0
votes
3answers
276 views

How to close all the windows before the next test in a test suite?

[7] pry(#<RSpec::Core::ExampleGroup::Nested_1>)> page.execute_script "window.close()" Selenium::WebDriver::Error::NoSuchWindowError: Script execution failed. Script: window.close(); The ...
2
votes
2answers
548 views

Selenium Web Driver Error

I'm getting a weird error while trying to click on a Capybara Element I'm using find(:xpath,"//a[contains(text(),'Connect')]").click (find(:xpath,"//a[contains(text(),'Connect')]").present? return ...
7
votes
1answer
545 views

Capybara visit gets stuck for no reason

We have a large cucumber suite for a rails project. It is all capybara and mostly goes via Firefox. Recently we started to experience a failure, that I am struggling to get my head around. Here is ...
4
votes
1answer
453 views

Rails 3.1 Capybara jQuery is not defined

I keep on getting this error: Failure/Error: page.evaluate_script('jQuery.active') == 0 Selenium::WebDriver::Error::JavascriptError: ReferenceError: jQuery is not defined whenever I use the ...
0
votes
0answers
153 views

Error while running a JavaScript test with Capybara and Cucumber (Errno::ECONNREFUSED)

So I've been using Cucumber to run integration tests on my Rails app for some time now. Recently, I had to write a test involving a page in my app which needs JavaScript in order to work properly. I ...
1
vote
0answers
193 views

Internal Server Error when testing javascript with cucumber-rails

I'm having a strange problem with the following cucumber test: @javascript Scenario: Successful sign out Given there is the following user: | id | 1 | | email ...
0
votes
1answer
918 views

Rspec tests running in wrong environment?

I have an integraton test that is run using selenium. In my before each i build a few objects and index with solr. I can see the activity in my subnsspot solr test log. And then in my test I perform ...
0
votes
0answers
77 views

Coverage for my selenium test suite in ruby

How to find the coverage for selenium test suite in ruby, should I run the rails server under rcov? If so how? I am using rails 3 I have installed rcov gem and tried rcov rails s It creates a ...
7
votes
2answers
820 views

Capybara integration testing with asynchronous JavaScript

I have a Rails integration test that's failing, and I can't figure out why. I'm using Capybara with Selenium as the driver. The test checks that page content has been removed after an AJAX call takes ...
0
votes
1answer
46 views

javacript code partially not executed in test environment, works in production, development (Rails 3 app)

Rails 3 I have a list inside a form: <%= form_for @article do |f| %> <ul> <% @product.each do |p| %> <li id="product_<%=p.id%>"> <div> ...

1 2 3 4 5
15 30 50 per page