Questions tagged [poltergeist]

Poltergeist is a Capybara driver for PhantomJS.

Poltergeist is a driver for Capybara. It allows you to run your Capybara tests on a headless WebKit browser, provided by PhantomJS.

490 questions
0
votes
1 answer

how to call a test script from another test script?

For example : consider the log in function .It is requried for all the test cases .I want to call the log in test script from my another test scriptooking say making a b ?Iam using capybara and rspec for automation .
user2391218
  • 412
  • 6
  • 17
0
votes
1 answer

Capybara/Poltergeist causing unexpected results in request spec in Rails 3.2 app

Is there an alternative I can use to Capybara's save_and_open_page? I have written a request spec that test the user signup form. Upon successful signup, which this test should yield, this test should be passing, but it's not. Yet when I do…
RubyRedGrapefruit
  • 12,066
  • 16
  • 92
  • 193
0
votes
2 answers

NoMethodError: undefined method `result' for #

I am having the following error randomly when running rspec with capybara and poltergeist: NoMethodError: undefined method `result' for # I think the cause may be relationed with the…
rafaelkin
  • 425
  • 3
  • 9
0
votes
1 answer

Correct way to close capybara (with poltergeist/phantomjs)

I'm runnning a lot of jobs through capybara on my linux server. I'm using the poltergeist phantomjs driver. After A while I'm getting a lot of these errors: Errno::EMFILE Too many open files - socket(2) I looked in lsof and it looks like I have a…
Niels Kristian
  • 8,661
  • 11
  • 59
  • 117
0
votes
1 answer

VCR Sharing requests between cassettes?

My VCR config is: VCR.configure do |c| c.configure_rspec_metadata! c.cassette_library_dir = 'spec/cassettes' c.hook_into :webmock c.ignore_localhost = true end And a test example is: it "creates a build", :vcr => {:cassette_name =>…
Jay Truluck
  • 1,509
  • 10
  • 17
0
votes
1 answer

Poltergeist Rspec If-None-Match If-Modified-Since headers

I have a feature spec that makes two visit requests to the same url. The expected behavior is that the second request should return a 304. This is not happening however. I have set the phantomjs_options: ['--disk-cache=true'] but that does not seem…
0
votes
1 answer

RSpec, Capybara and an ajax request with rails

So I have javascript method in my view that looks like this: window.getWeatherData = function () { $.getJSON('/weather.json?building=RSF', function (response) { console.log(response) $('#dynamic-wrapper').show(); …
pizza247
  • 3,869
  • 7
  • 33
  • 47
0
votes
1 answer

Does poltergeist support capybara's should_not RSpec matchers correctly?

According to capybara's README: The two following statements are functionally equivalent: page.should_not have_xpath('a') page.should have_no_xpath('a') However, when trying this out, that does not appear to be true. This seems to work fine when…
Ari
  • 2,311
  • 1
  • 17
  • 17
0
votes
1 answer

Capybara Poltergeist - Site shows message to enable cookies

I am running Capybara 1.1.2 with Poltergeist 1.0.1 for headless testing. The test runs fine with selenium driver. However with poltergeist, the site snapshot states that cookies are disabled. Am I missing any config. Shouldn't cookies be enabled by…
3coins
  • 1,322
  • 3
  • 11
  • 30
-1
votes
1 answer

Unable to interact with third party angularJs application with phantomJs,capybara

I am unable to interact with angularjs third party application. I have installed capybara-ng, capybara/angularjs and have changed the DSL to angularJs DSL. I am using ruby2.0.3,phantomjs-2.0.0-windows. The DOMs are not fully loaded and I am unable…
1 2 3
32
33