poltergeist Questions

3

Solved

I'm trying to open a link by clicking on it using capybara/poltergeist which opens up in a new tab. I can't seem to get it working. @session.find(<link>).click just seems to stay on the...
Vanscoy asked 9/2, 2015 at 17:46

5

When running my test suite using poltergeist as the JavaScript driver, I am encountering the following warnings: JQMIGRATE: jQuery.fn.attr(selected) may use property instead of attribute JQMIGRATE...
Headquarters asked 23/7, 2013 at 6:49

5

Solved

I have created custom upload form using the following html stack: <form> <label></label> <input type="file"> </form> The file field is hidden via css with display...
Grimaldo asked 28/6, 2013 at 9:21

6

I'm trying to test that a link to a destroy action throws a native browser confirm box with the correct message. The link is being generated using rails' link_to: link_to 'Delete', user_path, met...
Quorum asked 13/8, 2014 at 17:40

2

What I'm trying to Do I'm trying to use capybara with poltergeist to log into amazon at this URL... https://developer.amazon.com/rp/sales.html Simple enough, except that when I try to submit th...
Equilibrant asked 28/5, 2015 at 2:13

3

Solved

I have a large test suite that is using poltergeist and capybara. I keep getting the following error: One or more errors were raised in the Javascript code on the page. If you don't care about the...
Willms asked 4/9, 2014 at 19:50

2

Solved

I have a modal that closes when its overlay div is clicked. The overlay extends over the entire page but underneath the modal itself. I want to close this modal in my tests, and it's important that...
Fission asked 15/10, 2014 at 3:54

1

Solved

I have a gem called "fantastic" with a dummy app inside to test. When running the dummy app, everything works well. However, when I run the tests, unit tests works fine, but integration tests (Cap...
Deodand asked 12/9, 2017 at 15:31

1

[CKEDITOR.resourceManager.load] Resource name "default" was not found at "http://cdn.ckeditor.com/4.4.7/full/styles.js?t=F0RD". I intermittently run into this error while running integration tests...
Checkoff asked 21/3, 2015 at 14:38

4

Solved

What are the differences between PhantomJS and capybara-webkit? What are the advantages of capybara-webkit over PhantomJS? Which of the two is the most efficient tool? Others ...
Aileenailene asked 30/5, 2014 at 9:37

3

I am trying to make some tests with Rspec/Capybara/Poltergeist on my Rails 4 application, Phantomjs is installed (version 2.2.1), but I always get this error : Failure/Error: visit(perfect_land...
Fidole asked 2/3, 2016 at 9:29

2

Solved

I've searched around and I can't find a way to do this. We are running Capybara tests with the Poltergeist driver in cucumber features on an EmberJS/Rails app. I can't use page.driver.debug becaus...
Romanticist asked 4/9, 2013 at 19:4

2

Solved

After I log in through devise I'm clicking on the button with attached javascript which makes some HTML visible. <button id="btn_simple_search" class="btn btn-primary btn-md well_button" da...
Hiltner asked 25/1, 2017 at 14:49

1

Solved

Background: My testing suite did not handle any JS functionality until recently. I started out only on my machine with a selenium-webdriver javascript driver and firefox 47.0.1 with no issues. I t...
Kalahari asked 15/12, 2016 at 10:7

1

Solved

I have a page with JS functions (which are called on mouse click) within <script> ... </script> tags. While I was testing I had encountered problems with .click method not working many ...
Stramonium asked 5/8, 2016 at 6:13

1

I'm in the process of converting my Capybara test suite from capybara-webkit to poltergeist. -require 'capybara/webkit' +require 'capybara/poltergeist' -Capybara.javascript_driver = :webkit +Capy...
Scurvy asked 26/10, 2015 at 21:36

2

Solved

I have a set of tests which lead to a Facebook page where the user logs in. Unfortunately, this page has some JavaScript errors which I can't influence, so my tests would never finish. Is there an...
Ineffective asked 25/2, 2014 at 16:44

0

I have a Rails App using Angular JS to render the views and I am testing this app with Rspec, Jasmine, and Capybara with PhantomJS as a driver through Poltergeist. Locally all of the tests pass 100...
Berlin asked 23/3, 2016 at 15:57

2

Solved

I have been having problems with my tests timing out and failing randomly. I have been looking around for best practices of how to write robust capybara integration tests but I don't find anything ...
Epizoon asked 12/1, 2013 at 11:15

3

Solved

I'm using Capybara with the Poltergeist driver. My question is: how to get the HTML (string) of a node? I've read that using the RackTest driver you can get it like this: find("table").native #=&...
Freeboard asked 13/11, 2013 at 12:2

1

I'm using poltergiest and phantomjs for my integration tests and I need to test behavior for a user scrolling down the page and adjusting the browser window. I've used both page.driver.resize(width...
Yellowlegs asked 10/2, 2014 at 23:52

2

Solved

I'm trying to test in my Rails app the Stripe checkout popup (http://www.stripe.com/checkout). I was using Capybara + selenium-driver and everything worked well. When the page is loaded, the check...
Recommendation asked 20/3, 2014 at 17:15

1

I'm trying to figure out how exactly to implement this functionality of Poltergeist into my existing Capybara tests, and I'm not having any luck after reading the documentation here: https://github...
Advise asked 17/4, 2015 at 19:40

2

I need to check has page a JavaScript error. Solution for capybara-webkit http://blog.55minutes.com/2013/10/test-javascript-with-capybara-webkit/ require 'spec_helper' feature 'Home' do it 'sh...
Bradfield asked 17/3, 2015 at 23:25

4

Solved

I use poltergeist/phantomjs for CI, but I want to be able to optionally change the JS driver to selenium to watch my test runs locally. Ideally I'd like to have a command line flag for this- defaul...
Harleigh asked 29/8, 2013 at 2:53

© 2022 - 2024 — McMap. All rights reserved.