2,433 questions
1 vote
1 answer
59 views
Is there any Playwright equivalent for waitForResource in CasperJS?
Is there any Playwright equivalent for waitForResource in CasperJS? How can I write the below code using Playwright? casper.waitForResource(function test(resource) { return resource.url.indexOf(&...
2 votes
1 answer
82 views
Cookies popup stops login to Amazon with CasperJS
Cookies pop-up stops login to Amazon with CasperJS I am trying to write a script using CasperJS to login into my Amazon account. As of now, in 2023, Amazon requires you to input the email first, and ...
3 votes
0 answers
877 views
Ghost email subscribe is giving “Failed to sign up, please try again” error
I hope you are well. I’m using Ghost 4.33 on DigitalOcean Droplet. The site is running well. I have been editing the Casper theme. Mostly cosmetic updates. I signed u pfor Mailgun and got my email, ...
0 votes
0 answers
121 views
searchParams not working when called from inside CasperJS code
I would like to update a parameter of a URL so in node JS I have a code that works fine see below: var injectCorrectIndexKey = function (url) { var href = new URL(url); href.searchParams.set('...
0 votes
0 answers
49 views
Casper JS returns only first row of a table
I have a table as below: <table id="securedTable" border="1" cellspacing="0" cellpadding="1" class="secured"> <thead> <tr&...
-1 votes
2 answers
39 views
Trying to fill table element by id with casperjs
casper.thenEvaluate(function(text){ document.querySelector("#inputValue").value=text }) casper.thenEvaluate seems to not accept the argument and it is filling undefined in the webpage.
0 votes
0 answers
43 views
function this.click dont work on casperjs
there is my code var casper = require('casper').create(); verbose: true; logLevel: 'debug'; pageSettings: { loadImages: true; loadPlugins: true }; ...
1 vote
2 answers
425 views
Difficulties installing casperjs on Mac
After days trying install casperjs on my Mac, i'm asking some help. I first used "brew install" method and NPM, this is terminal's messages : brew install casperjs Updating Homebrew... ==>...
1 vote
0 answers
46 views
Casperjs persisting cookies
I'm trying to use CasperJS for HTTP auth to an app then make a second request which if successful should trigger an XSS payload to send the cookies out. I know the auth works as the below code ...
0 votes
1 answer
40 views
casperjs failed to access certain websites that even wget can
A very simple example link https://www.accessdata.fda.gov/scripts/cder/daf/index.cfm. Even wget without any header information can successfully scrape the information. However, casperjs just not work ...
0 votes
0 answers
30 views
CasperJS not scraping paginated data except first
I am trying to scrape this The first page is loading correct but whenever I run the below code, it doesnt give any error and returns data of the first page. I tried several ways but was unable to ...
0 votes
0 answers
50 views
I am new in web scraping using casperjs try to run some example problem but doesn't get the result
So first I try with this code which is available in casperjs example for scraping google search result. but it doesn't work correctly. var links = []; var casper = require('casper').create(); ...
-1 votes
1 answer
134 views
C# WebClient - Getting an HTML from URI instead of CSV from OBIEE
Following this post: C# WebClient - Getting an HTML from URI instead of CSV_ The problem is that the csv was compiled with javascript in the browser. In the same post, recommendation is use Casperjs ...
0 votes
1 answer
658 views
Insert stripe credit card number using casperjs in magento2
I am trying to do a functional test using casperjs in magento 2 at the one step checkout. In this case I have Stripe as a payment gateway and has an iframe with out id or name. (the class name ...
0 votes
1 answer
51 views
How to download image from link direct to save or download button click with CasperJS?
I am trying to download an image with CasperJS. The thing is that I need to download this image from either the click button event or from the direct download link. I have no code yet, so could anyone ...