casperjs Questions
7
Solved
I am trying to scrape a webpage which has a form with many dropdowns and values in the form are interdependent. At many point I need the code to wait till the refresh of the page complete. Eg after...
Tonneau asked 4/3, 2014 at 5:22
2
Solved
I am trying to use CasperJS to scrape a website that has dynamic content and am failing so far. The website uses a couple of js libaries(e.g. Prototype) to use autocomplete to create content. I am ...
Pibroch asked 28/6, 2012 at 3:18
1
Solved
I am trying to scrape the text from youtube live chat feeds using casper. I am having problems selecting the correct selector. There are many nested elements and dynamically generated elements for ...
Accomplished asked 24/5, 2017 at 20:6
1
Solved
I am trying build a web scraping app using Reactjs.
I used nightmare.js in normal JS and I did get the desired output. But when I tried adding in a button and creating functions it did not work wel...
Mahala asked 18/5, 2017 at 23:31
3
Solved
Using CasperJS how do I catch and handle CasperError?
The default appears to continue execution of the program (which does nothing but propagates the error).
These errors are logged to the consol...
Wifehood asked 9/12, 2013 at 20:52
1
Solved
I am currently working on trying to craft end to end tests using PhantomJS and CasperJS. What I've run into is a situation where PhantomJS lacks promises. Currently our project implements them. The...
Insolvable asked 13/4, 2016 at 15:45
5
I'm using CasperJS to check some site and write JSON data into a file. File should be written into public/data folder. But when I'm trying to call casperjs outside of my project directory (e.g. my ...
1
Solved
I have a casperjs script which gives the desired result when I run on a linux server, but when I run the same from my laptop, it doesn't work.
How should I debug? Logs of the working one:
[info] ...
Mazzard asked 1/1, 2017 at 6:15
1
Solved
I have the following code:
var casper = require("casper").create({
// verbose: true,
// logLevel: "debug",
webSecurityEnabled : false
});
var links = [];
function get_links(obj) {
return obj....
Armond asked 10/12, 2016 at 20:33
2
Solved
I am trying to running Casperjs with Slimerjs
I Installed SlimerJS 0.10.2
I have installed Mozilla Firefox 45.5.1 (tried with 50 too)
I have installed CasperJS 1.1.3
I have installed xvfb 1.17.4
...
1
Solved
Note, I've already looked at:
Understanding the evaluate function in CasperJS
I am trying to write a simple web-scraper to download all pdf's on my professor's webpage.
Here is my code:
var c...
Monzonite asked 22/12, 2016 at 19:29
3
The error:
casper.test property is only available using the `casperjs test` command
Searched my entire codebase for "casper.test", "this.test", "@test", etc, and none are present. Looking at the...
2
I am using PhantomJs and CasperJs to login with amazon it works fine, however after multiple times login amazon gives Captcha and my script fails. I dont know how to handle login script if it has c...
Communicate asked 4/10, 2016 at 12:27
2
Solved
I'm trying to use CasperJS as a web scraper, and there's a page with buttons that will load data when clicked. So, I'd like to click all of these buttons first and wait before actually making a que...
Serpentine asked 1/12, 2016 at 14:45
2
I'm a beginner at PhantomJS/CasperJS.
I just want to start a session and verify that it's OK.
Here's my code:
var casper = require('casper').create({
verbose: true,
logLevel: 'debug',
pageSettin...
Agrestic asked 16/3, 2016 at 15:58
3
Solved
I am trying to use Casperjs to get a list of links from a page, then open each of those links, and add to an array object a particular type of data from those pages.
The problem I am having is wit...
Lavation asked 3/11, 2016 at 23:8
1
I'd like to use the waitForUrl() function from http://docs.casperjs.org/en/latest/modules/casper.html#waitforurl . After a login form was send casperjs should wait for the next page is loaded. In t...
Intussuscept asked 3/11, 2016 at 13:35
3
Solved
I am trying to click a 'next' button N number of times and grab the page source each time. I understand that I can run an arbitrary function on the remote website, so instead of click() I just use ...
Sumerian asked 16/9, 2013 at 18:51
4
Solved
When running a test getting.
FAIL 35 tests executed in 16.806s, 35 passed, 0 failed, 2 dubious, 0 skipped.
What does the 'dubious' imply and how to see which assertion or test case is dubious?
...
Circumstantiate asked 13/11, 2013 at 6:33
3
Solved
I have a list of links that I have to simulate a click on using CasperJS. They all share the same class.
However using this.click('.click-me') only clicks on the first link.
What's the proper way...
Rhizopod asked 29/1, 2013 at 22:46
1
Is there a way to use ES6 modules to organise the test for CasperJS, and if not what is the normal way to organise the tests?
3
I'm new to CasperJS and I'm having problems in logging in into this site http://weibo.com/login.php
here's what I've tried
this.fill('form#contact-form', {
'username': '[email protected]',...
Nucleoplasm asked 18/10, 2013 at 9:32
1
I would like to fake Navigator platform property of CasperJS(/PhantomJS). I found the easy solutions of overwriting the Navigator Object at page load which is suggested in many other places on the ...
Speos asked 8/7, 2016 at 1:9
2
Solved
Question : I would like to know if it's possible to do parallel browsing with the testing framework in one script file, so with the tester module and casperjs test command.
I've seen some people c...
Hochstetler asked 19/3, 2014 at 17:32
3
Solved
I am struggling to interact with my google place autocomplete results within my integration tests.
var placeSelector = '.pac-container .pac-item:first-child';
exports.runTest = function(test) {
...
Seow asked 11/5, 2016 at 8:35
© 2022 - 2024 — McMap. All rights reserved.