poltergeist Questions

4

Solved

I've followed the instructions on Poltergeist github page but i keep getting an error that my PhantomJS version is wrong. Specifically, it says: Could not find an executable 'phantomjs' that matc...
Gladiolus asked 16/9, 2013 at 10:36

3

I have implemented a JQuery-file-upload in my Rails4 app. File upload works when I manually test it from the browser, but my test for it fails. Below is my spec for the JQuery-file-upload: requi...

2

at some point, I don't know if you guys call it REPL-driven development or something, but I find myself inspecting the contents of my runtime by inserting a binding.pry call in some test. This work...
Dougall asked 16/9, 2013 at 13:31

2

Solved

It appears I'm retracing the steps taken in the SO post: Capybara, Poltergeist and Phantomjs and giving an empty response in body. (Mark this as a duplicate if you want, but I'm including a minimal...
Watthour asked 20/10, 2013 at 11:56

3

Solved

I've been going nuts trying to write an automated test for my user sign up page. Users will be charged a recurring subscription via Stripe. They input their basic details (email, password, etc) and...

0

I have a modal dialog (bootstrap modal-content) with a form on it. The form has a field for an email: <input class="form-control" data-error="Email address is invalid" required="required" id="...
Recommit asked 22/4, 2015 at 11:13

1

I'm having weird issues with some of my feature tests using Capybara with poltergeist driver. The test should perform a simple checkout in my online shop. They all pass fine on my local MacBook as...
Coworker asked 18/1, 2015 at 11:45

1

Solved

After a click on some element I expect a placeholder to disappear and another element to appear after an AJAX call is finished. find(someLocator).click expect(page).not_to have_css(disappearingPla...
Kimberlite asked 10/2, 2015 at 9:25

1

Solved

I need to increase the length of the timeout in Poltergeist. The poltergeist documentation says I need to put this code in my test setup Capybara.register_driver :poltergeist do |app| Capybara::P...
Vestiary asked 29/1, 2015 at 1:56

2

Solved

I have a test program that mimics a user's iOS device by sending chunks of data to a rails server. This program works fine outside of testing. Inside of testing, the program immediately times...
Dodecanese asked 4/7, 2013 at 0:5

5

Solved

UPDATE: I have fixed this problem after lots of painstaking work on my own. I am happy to be a resource to anybody needing a hand with this. Here is a gist of my working setup. I have tried ev...
Laetitia asked 29/12, 2013 at 21:20

3

Solved

I am on Day 4 of trying to get an autocomplete field to fire in an RSpec test. Works super in the browser, it is just incredibly resistant to running in my request specs. UPDATE: It looks like m...
Bluma asked 29/12, 2013 at 3:45

1

I am using rspec and capybara for test with rails 4.0 I am displaying an alert box after sending ajax request. I want to test alert box text in my spec. Is there any way to test it ?
Dietz asked 25/2, 2014 at 10:33

3

I am getting am empty document back from phantomjs. I am trying to use Capybara and Poltergeist for setting up the phantomjs driver for Capybara. I created a module as follows and included it in ...
Anesthetist asked 31/3, 2013 at 19:54

1

We started the process of integration Reactjs in our Rails 4.1 app. The thing is that a LOT of features are broken now. Here is the stack for tests: Cucumber Capybara Poltergeist (via phantomjs...
Tomkins asked 29/9, 2014 at 14:59

1

Solved

I am using capybara poltergeist to automate a small script on tumblr.com My script works fine with my chrome driver.. And my poltergeist driver loads all other websites just fine, but for some rea...
Alongside asked 7/9, 2014 at 2:28

1

Solved

I have a really simple line in a test that calls execute script like this: puts page.execute_script("return somefunction();").to_i.inspect And in javascript I have a function like this: functio...

1

Solved

I have an RSpec integration test that needs to execute some JavaScript. I've included Poltergeist and installed PhantomJS, but whenever I run the example, I get this error: Failure/Error: page.exe...
Herbarium asked 25/6, 2014 at 18:19

2

If I call url_for within a feature spec, it returns an absolute URL starting with http://www.example.com/. Capybara will happily attempt to load pages on that site, but that has nothing to do with ...
Nealon asked 18/4, 2014 at 23:18

1

Solved

Hi fellow software developers, I have a Rails app with a usual testsuite set up (RSpec, Capybara, Poltergeist, jQuery, Rails). I use a little Javascript(jQuery) for remote requests. Basically it w...

4

I am writing my acceptance tests using Capybara and Poltergeist driver.I need to validate the content of the CSV file downloaded. I tried various ways of rendering the content on the page itself ...
Adelia asked 1/4, 2013 at 7:29

4

Solved

I want to switch from Selenium to Poltergeist but I need to simulate a barcode scanner that looks like keyboard entry to the <body> tag. I use this code with Selenium: native.send_keys(send_...
Flyspeck asked 5/3, 2013 at 19:41

1

I've created a small Rails app that checks recularly the content of one of my sites with poltergeist and Capybara. Everything works great in dev on my mac. But when I test it on my production serv...
Malines asked 2/7, 2013 at 9:8

1

Solved

I am running Capybara with Poltergeist and I have a step: Given(/^take a screenshot$/) do page.save_screenshot("/tmp/page.png", :full => true) end And it keeps saying: Capybara::Driver::Bas...
Roquefort asked 20/1, 2014 at 15:27

1

The capybara-webkit driver allows you to test the content of any confirm dialog messages that are triggered by the app. Is there a way to do this in poltergeist?
Gravure asked 10/12, 2013 at 4:7

© 2022 - 2024 — McMap. All rights reserved.