Skip to main content

Questions tagged [zombie.js]

Zombie.js is a lightweight framework for testing client-side JavaScript code in a simulated environment. No browser required.

zombie.js
3 votes
1 answer
165 views

Zombie.js unable to access dataset property of DOM elements

I have a page which contains a rich-text editor. I used CKEditor for this. You pass it a div element and it loads the editor into that element. Now I wanted to write integration tests for that page. ...
Laura L.'s user avatar
  • 431
2 votes
0 answers
359 views

Killing zombie.js browser object

I've got a problem with lambda function timing out. It times out because of zombie.js JavaScript browser. const login = async (url, pass) => { const Browser = require('zombie'); var browser = ...
Pawel's user avatar
  • 3,724
0 votes
0 answers
92 views

Zombie.js Click input type image

I use Node.js along with Zombie.js for scraping. On some pages, I need to click a Javascript link the part that I want to click is <input type="image" name="ok" src="dialog_ok_apply.png" height="...
Firas's user avatar
  • 13
0 votes
1 answer
198 views

How to save the downloadable file link in zombie.js

I am scrapping a website using node.js and zombie.js. I am facing an issue where in a file I have an anchor which holds the link to download a pdf file. If I click it using browser.clickLink() ...
umair.ashfr's user avatar
  • 1,221
0 votes
2 answers
131 views

Looking for a program, that supports DOM funtions and run javascript in linux server, just like a browser but without User Interface

Currently, I create chart in client browser, using highcharts; Export them as svg with highcharts inbuilt export option; I use canvg to generate png base64 image string from exported svg; Then, I ...
Jeffrin John's user avatar
0 votes
1 answer
320 views

Zombie.js - Check if Checkbox is selected and How to know where exactly test case is getting failed

I am trying to achieve functional testing on a HTML page using Zombie.js[headless browser] and Mocha[testing framework]. Below is my HTML page <div id="toggle" style="display:none">Hello ...
Tanmay Dubey's user avatar
0 votes
1 answer
80 views

Uncaught NetworkingError: Cannot read property 'replace' of undefined Error

I'm getting the following error when trying to run the following code. My goal is to delete all items in both the User and Item tables. User and Item correspond to Dynamoose models. The for loop is ...
Charlie Fish's user avatar
  • 19.8k
0 votes
0 answers
471 views

Wait until page is load Zombie testing node

While executing this test I allways get a timeout error. I need to uncomment the this.timeout function in order to get this working properly...I thought the done callback was called when page was ...
Frnnd Sgz's user avatar
  • 328
1 vote
1 answer
2k views

Zombie.js Error: Timeout: did not get to load all resources on this page

I'm having a problem where Zombie.js is throwing an error Error: Timeout: did not get to load all resources on this page. It's always super random and always seems to happen on a different test. I ...
Charlie Fish's user avatar
  • 19.8k
6 votes
1 answer
177 views

Why doesn't Zombie.js work with Google Charts?

I have a simple web page that loads the Google Chart API: <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> ...
ladenedge's user avatar
  • 13.3k
0 votes
1 answer
45 views

Install ZombieDriver for Mink/Behat under Windows

The installation instructions at http://mink.behat.org/en/latest/drivers/zombie.html are (a) incomplete and (b) Linux only. How can I install ZombieDriver on Windows?
Thomas Landauer's user avatar
0 votes
1 answer
640 views

Use promise to delay mocha

I'm using mocha and zombie. My goal is to load data from website <a> tags from website then query name and href. So far this is working: const Browser = require('zombie') const browser = new ...
Maciej Kozieja's user avatar
0 votes
1 answer
668 views

How to handle unlimited scrolling/dynamic loading with CasperJS (PhantomJS) on Twitter

Trying to handle unlimited scrolling on Twitter, page doesn't seem to be loading dynamic content even though I'm scrolling to the bottom. I'm doing a quick test to see if content even loads with the ...
PGT's user avatar
  • 1,890
0 votes
0 answers
272 views

How to find multiple elements on headless browser and click them after a timeout

I want to detect elements in the DOM without a specific child, and then click the ones without the child after a timeout. There is no way to explicitly and directly find the elements only get all ...
PGT's user avatar
  • 1,890
0 votes
1 answer
575 views

What is the difference between Zombie.js and Jasmine?

May I know what is the difference between Zombie.js and Jasmine? are they both frameworks?
user5125652's user avatar

15 30 50 per page
1
2 3 4 5
15