Search Posts

Category: phantomjs

How to use phantomjs to click "Load More" button continually until page is fully populated?

I’m very new at learning phantomjs and casperjs and looking for some pointers in how to click a “Load More” button to fully populate a page. I’ve looked through similar questions but don’t see anything that matches (at least not that I understand). The idea is to scrape viewer counts off a livestream.com event page. To start, I can grab the first page in plain text with phantomjs (using cnet as an example) as follows: […]

PhantomJS 2.1.1 (Windows 7 0.0.0) ERROR ReferenceError: Can’t find variable: Map

I have used “MVC ASP.NET Core with Angular” template. I am trying to include phantomJS and run the tests, but i get the following errors: ERROR in [at-loader] ..node_moduleszone.jsdistzone.js.d.ts:122:11 TS2451: Cannot redeclare block-scoped variable ‘Zone’. ERROR in [at-loader] ..node_moduleszone.js distzone.js.d.ts:363:14 TS2300: Duplicate identifier ‘HasTaskState’. ERROR in [at-loader] ..node_moduleszone.js distzone.js.d.ts:372:14 TS2300: Duplicate identifier ‘TaskType’. ERROR in [at-loader] ..node_moduleszone.js distzone.js.d.ts:458:15 TS2451: Cannot redeclare block-scoped variable ‘Zone’. PhantomJS 2.1.1 (Windows 7 0.0.0) ERROR ReferenceError: Can’t find variable: Map […]