casperjs Questions

7

I'm trying to install PhantomJS on my Mac (Yosemite). I did the following: npm install phantomjs Then I did: npm install phantomjs-prebuilt Both of which appear in my node_modules. But whe...
Incumbent asked 3/5, 2016 at 0:57

2

Solved

Using CasperJs, I'm trying to do some testing on canvas, by grabbing it and using canvas.toDataURL();. However, the canvas does not have an id, the code looks something like this: <div id= 'der...
Oldcastle asked 15/8, 2013 at 14:21

3

I am getting the following error in windows while running spookyjs but code is working in linux. Error events.js:85 throw er; // Unhandled 'error' event ^ Error: spawn casperjs ENOENT at exports...
Cuddle asked 24/7, 2015 at 12:6

4

Solved

The data on the webpage is displayed dynamically and it seems that checking for every change in the html and extracting the data is a very daunting task and also needs me to use very unreliable XPa...
Wellmeaning asked 3/7, 2014 at 13:43

7

Solved

I've downloaded the latest version of casperjs (1.03) and phantomjs (1.9.2). So I took this little simple script from the casper page: var casper = require('casper').create({ verbose: true, lo...
Pluralism asked 20/10, 2013 at 11:43

5

Solved

I installed PhantomJS in C:\xampp\htdocs\phantom and also I installed CasperJS in this folder C:\xampp\htdocs\casper When I tried to run these sample code on casper site using phantomjs test.js co...
Logan asked 10/9, 2014 at 8:47

5

Solved

I'm using PhantomJs, CasperJs, and Js in a js file ran through the cmd. Imagine we had two files(test1.js, and test2.js). Both files have a url/site variable that directs the test to a particular ...
Exchangeable asked 13/2, 2014 at 20:49

1

Solved

I need to make Puppeteer pause and wait for user input of username and password before continuing. It is a nodejs 8.12.0 app. (async () => { const browser = await puppeteer.launch({headless: f...
Tournedos asked 25/10, 2018 at 21:57

2

Solved

casper.start(URL, function() { casper.page.injectJs('C:/Users/Mike/Documents/n1k0-casperjs-bc0da16/jquery-1.10.2.min.js'); var names = $('span.author-name'); this.echo(names); this.exit(); } ...
Sagitta asked 25/7, 2013 at 14:30

2

Solved

I have input element as shown : <input type="text" class="bg-white" id="couponCode" value=""> How can i set/fill its value using casperJs
Womanhater asked 11/8, 2013 at 12:45

3

Solved

I'm using CasperJS to automate a series of clicks, completed forms, parsing data, etc through a website. Casper seems to be organized into a list of preset steps in the form of then statements (se...
Taft asked 22/7, 2012 at 22:50

1

Solved

I'm using jQuery to get a list of elements that contain certain key words. I'm able to get the list of elements but I don't know how to loop through each element, click on its child element and dow...
Regular asked 29/5, 2018 at 6:18

2

Solved

This is first time i cant open website using headless browser such: phantomjs, slimerjs or casperjs. I just want to open website. I just create very basic script to open the website and take screen...
Thermobarograph asked 15/4, 2018 at 7:43

5

Solved

I have a webpage with an iframe. I'd like to access the contents of the iframe using CasperJS. In particular, I need to click buttons and fill a form. How can I do that? The main webpage is main.h...
Mabe asked 27/8, 2012 at 21:56

9

Solved

I'm trying to crawl the sizes for this product: Link to product The problem: The sizes are loaded after the color of the product is selected. In the product page's source code, I can see that t...
Stone asked 2/5, 2013 at 7:10

8

I know there is a documentation from CasperJS website about how to install CasperJS on Windows, but bear with me these guys only explained for the pros only. If you are new to all this CasperJS a...
Thinkable asked 15/2, 2013 at 12:2

3

Solved

I have been writing tests for my Ruby code for a while, but as a frontend developer I am obviously interested in bring this into the code I write for my frontend code. There is quite a few differen...
Narwhal asked 31/7, 2012 at 13:52

2

Solved

So what I want to do is create a casperJS function which allows us to repeat a step X times, by refreshing the page first, when this step function reaches the timeout. For unreliable test due to a...
Frasier asked 27/5, 2014 at 13:44

1

Solved

I am trying to simulate a Drag & Drop event that is done using JQuery in my site. Manually performing the "drag & drop" with my own JQuery "works", but after the form where the drag & d...
Benetta asked 21/9, 2012 at 0:36

2

Solved

How can I inspect an object in a casperjs script ? I tried console.log(arguments) but it only prints [object Arguments] or [object Object]. I would like to expect something like: { 'firstparam': ...
Siena asked 16/6, 2012 at 23:40

4

Solved

I want to download a CSV file, it is generated on a button click through a POST request. I researched to my best on casperJs and phantomJS forums and returned empty handed. In a normal browser like...
Mews asked 22/4, 2013 at 9:58

4

Is there any way to download CSV file with casperjs without specifying download URL? I am trying to download CSV file whose URL is dynamically generated when I click the download button. So, I may ...
Portamento asked 17/9, 2012 at 14:10

2

So I have a file running in node which runs a local copy of PhantomJS as below shows: phantom.casperPath = 'node_modules/casperjs'; phantom.injectJs('node_modules/casperjs/bin/bootstrap.js'); var ...
Conundrum asked 8/11, 2013 at 10:47

2

I want to load a page using CapserJS, but how can I send cookie which was exported from chrome's http request header at that page? Such as: "SUB=_2AkMjHt3gf8NhqwJRmPkQzG_qZIp_yA3EiebDAHzsJxJTHm...
Benoit asked 19/10, 2014 at 5:57

2

I almost have this working, I just can't seem to download the file when it comes up. What am I doing wrong here? When clicking the button "Download Sales Report" a CSV should download, by my consol...
Ramsey asked 24/11, 2015 at 20:43

© 2022 - 2024 — McMap. All rights reserved.