Questions tagged [phantomjs]

PhantomJS is a headless (GUI-less) WebKit with a JavaScript API. It has native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

PhantomJS only rendering background image

I have an old website that uses PhantomJS (I know, its old) to pull some graph data off a website. It previously worked great and use to display the graphs with no issues until recently. Here is what ...
Josh Kitowski's user avatar
0 votes
0 answers
18 views

Why phantomjs does not load HTML page with <script type="module">?

I have a page (https://example.com/obj_renderer) that contains something like this: <html> <head> <script type="module" src="https://example.com/myobjt.js&...
José Ricardo Júnior's user avatar
0 votes
0 answers
8 views

Cheerio/Phantom scraping not returning page/working as I thought

const axios = require("axios"); const cheerio = require("cheerio"); const phantom = require('phantom'); const pretty = require('pretty'); const main = async () => { const ...
Fenrisulfr.33's user avatar
0 votes
0 answers
39 views

How to create PDF from json file created by highcharter export_hc function

I need to create a PDF (or SVG first then the PDF if it is not possible) from a json file created by the export_hc function of Highcharter (Highcharts for R). The file exported by the export_hc ...
Fabrice's user avatar
  • 365
0 votes
1 answer
99 views

Installing PhantomJS in R

I'm trying to install PhantomJS using the webshot package, SO I run the following on my machine: webshot::install_phantomjs(force = TRUE) At the end of the installation process I get the following: ...
Julio640's user avatar
1 vote
0 answers
50 views

Rendering chart.js using phantomjs results in ReferenceError: Can't find variable: Chart

I am trying to render a chart.js chart using phantomjs. However, upon running phantomjs, I get error ReferenceError: Can't find variable: Chart. Opening the HTML file, that I am trying to render, in a ...
Mayuna's user avatar
  • 21
0 votes
0 answers
26 views

Texts are not appearing in the header of converted pdf when using the html-pdf node module

I am using html-pdf module to convert a html file to pdf. Here in the header section i am not able to view the texts added in header. Its happening only in docker environment. its working fine in ...
Sreerag SS's user avatar
0 votes
1 answer
53 views

Is it possible to include a JavaScript library with chromote?

With phantomJS one can include a JavaScript library by doing page.inject("thelibrary.js"). Is it possible with the chromote package? I didn't find anything in the doc.
Stéphane Laurent's user avatar
0 votes
1 answer
131 views

Need help setting up a Highcharts Export Server through an aws lambda

I'm trying to create a lambda that hosts an Highcharts server to be called as a service. I've followed some guides that have attempted this in the past but none seem to work anymore. So I've started ...
Ben Stilwell's user avatar
1 vote
2 answers
60 views

Parse a dynamic HTML Page using PhantomJS and Python

I would like to scrape an HTML page where content is not static but loaded with javascript. I downgrade Selenium to version 3.3.0 in order to be able to support PhantomJS (v4.9.x does not support ...
Alez's user avatar
  • 2,077
0 votes
0 answers
29 views

Rendering issues while creating the header in a report

I have created a PDF report using these NodeJS libraries: node-html-pdf (node-html-pdf EJS I have enabled the footer property in the node-html-pdf options object: const options = { // ... other ...
InfZero's user avatar
  • 2,974
-1 votes
1 answer
34 views

What's the best way to get just the user readble word content of a page? [closed]

Take your average mainstream url like: https://people.com/books/jay-shetty-announces-new-book-8-rules-of-love/ And it's pretty easy to just copy and paste the text of the article as a human. But is ...
Andrew Arrow's user avatar
  • 4,284
0 votes
0 answers
13 views

Error when using PhantomJS to get html output after execution of highlight.js

I am using PhantomJS to get the html source of a page after the execution of some javascript code (namely highlight.js). Note that I'm relatively new to the use of javascript. Here is the code of the ...
Benoit00's user avatar
0 votes
0 answers
34 views

Pantomjs not starting while running ng test in DockerFile

`17:09:57 12 05 2023 11:39:57.559:INFO [karma]: Karma v1.7.1 server started at http://localhost:9876/ 17:09:57 12 05 2023 11:39:57.560:INFO [launcher]: Launching browser PhantomJS with unlimited ...
Sagar Sitap's user avatar
0 votes
0 answers
40 views

Phantomjscloud login and download JSON file

I would like to download file from my dashboard which is only accessible with login details. I am trying to use PhantomJSCloud for this. So, there is request.json for login to dashboard: { "...
Martin's user avatar
  • 3
1 vote
1 answer
734 views

Installing phantomjs binary on arm64 Ubuntu

It appears that a phantomjs package is available for arm64 architecture... see here and particularly here... it's for focal (20.04LTS). But I'm trying to install the phantomjs binary on the following ...
drmrbrewer's user avatar
  • 11.5k
1 vote
0 answers
32 views

Working example of JS code coverage under Bazel?

I have a project using the Bazel build tool with closure_js_library/closure_js_binary/closure_js_test rules for my JS. What I'm working on now is trying to get a code coverage report out of bazel ...
BCS's user avatar
  • 75.8k
2 votes
1 answer
58 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 ...
Jhon Meron's user avatar
-1 votes
1 answer
627 views

DDEV how handle Node package that does not support M1 Mac architecture?

I'm trying to understand how to proceed with a repo I've started working on that uses PhantomJS, a node package that was last published five years ago and doesn't seem to support M1 Macs. Other than ...
scaffolding's user avatar
0 votes
0 answers
34 views

How to solve object object problem in Phantomjs? [duplicate]

I tried all the Id and class options. I tried to pull the element using the last tag. But it writes [object Object] expression to the console. This object cannot be fragmented in any way. var webpage =...
furkan aydınlı's user avatar
0 votes
0 answers
63 views

How can I solve this fatal error in my microweber/screen package that I installed in my php project?

I try to use https://packagist.org/packages/microweber/screen this PHP package, I just installed it in my project and I run the index.php file but there is an error : Any idea ? Here is my code in my ...
Richardson's user avatar
0 votes
0 answers
77 views

Download web page html source after being processed by javascript

I was trying to scrap a page so i downloaded the html source code but then i found that most of the links leading to images and other stuff doesn't appear in the code so i inspect in chrome and found ...
Mohamed 's user avatar
0 votes
0 answers
44 views

How to solve a captcha with phantomjs?

My parser uses phantomjs: it sends many post-requests to a website and gets page contents. From time to time this website displays a captcha that I have to solve. So the question is. Is there any way ...
John's user avatar
  • 1
0 votes
1 answer
38 views

phantomjs command - permission denied

Running a VM with vagrant and virtual box but when I try to run phantomjs I get permission denied error. Tried to chmod 777 the executable but the permissions are still -rw-rw-rw I am running the ...
anapap's user avatar
  • 21
0 votes
0 answers
17 views

Does vega-lite's ES6 support mean that it won't work on phantomjs?

I'm using phantomjs to scrape a page that uses vega-lite charts, however I keep getting this error whenever my code calls vegaEmbed: ReferenceError: Can't find variable: vegaEmbed I'm guessing this ...
bluesmoon's user avatar
  • 3,918
0 votes
0 answers
285 views

Failed to install phantonjs-2.1.1-linux-x86_64 on Ubuntu 22.04.1 LTS

After following the instruction on my Ubuntu 22.04.1 LTS, And finally when I do phantomjs -v I get the error: Auto configuration failed 140111765546944:error:25066067:DSO support routines:DLFCN_LOAD:...
Zip's user avatar
  • 121
0 votes
0 answers
16 views

PhantomJS - Download xlsx from site

I need to download a specific file from a website by clicking on the image that fire the javascript event. There is no url link to get the xls file.I'm using phantomjs to do this but i'm not getting. ...
Leonardo's user avatar
0 votes
0 answers
63 views

npm ERR! PhantomJS not found on PATH in Railway

I have a node.js app in Railway. When it is buliding,I get an error: I install phantomjs package,but it still not work. How can I do?
Bryan's user avatar
  • 1
0 votes
0 answers
21 views

Phantomjs no response

I'm using phantomjs for the first time, for a project. I started from taking screenshots only, the problem is that on some sites phantomjs doesn't work, but it remains blocked (it doesn't even show ...
Zeld's user avatar
  • 33
0 votes
0 answers
35 views

How to fill in the authorization data and send it with one PhantomJS

var page = require('webpage').create(), system = require('system'), address; address = system.args[1]; var login = system.args[2]; var nick = system.args[3]; page.open(address, function(status) {...
Вили Били's user avatar
1 vote
0 answers
298 views

Unable to add phantomjs in my docker, getting error - npm ERR! `user` is not a valid npm option

I am trying to add phantomjs in my docker file to generate html - pdf. Below is my dockerfile Dockerfile FROM node:alpine WORKDIR / COPY package*.json ./ # Add support for https on wget RUN apk ...
Rishi Shah's user avatar
1 vote
1 answer
245 views

Unidentified package installing in my node_modules

There is a package called [email protected] that is continuously installing in my node_modules folder and I can't find the way to track it to know where it comes from. This package is ...
Michal Ružička Ružička's user avatar
0 votes
0 answers
47 views

Connection Response from Phantom

I am currently inegrating the connection phamtom wallet in my app being built using react -native but not getting a response from phamtom currently using the latest versions for IOS and Android. // ...
Alwayne Bailey's user avatar
0 votes
0 answers
51 views

PhantomJS errors out on EBS

I'm using html-pdf to generate and pdf on my nodejs app, which is then being uploaded to S3. This works fine on my local, but I face this error Error: spawn /usr/local/bin/phantomjs ENOENT when ...
Karthik 's user avatar
0 votes
1 answer
266 views

Phantom: WalletSignTransactionError: Something went wrong

A message is created and the user signs it. const anchorWallet = useAnchorWallet(); const createLoginSignature = async () => { if (!anchorWallet) return; const message = "...
tolgaandx's user avatar
0 votes
0 answers
52 views

What will be the phantom path in options while using html-pdf in elastic beanstalk in node

In local, I am using ./node_modules/html-pdf/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs phantom path but it is not working in elastic beanstalk
Karan's user avatar
  • 1
0 votes
1 answer
59 views

SVG <LinearGradient> appears black on PDF export (PhantomJS)

In our application we generate lots of various PDFs containing SVGs, and all of them render without any issues. The only exception is this linear gradient. Is there anything wrong about this SVG? <...
Cortez's user avatar
  • 26
1 vote
1 answer
62 views

Rendertron modifying CSS

Rendertron is loading my webpage, but it is prefacing the CSS file (bundled app.css via webpack) with the following PRE tag and HTML tags: <html><head><base href="https://redacted-...
Joel's user avatar
  • 384
0 votes
0 answers
98 views

PhantomJSCloud How to use mouse click options

I would like to know and understand how I can add javascript code to my current code in order to perform actions such as a click on a page that I loaded using phantomjscloud using their api. Here is ...
Sneakes's user avatar
1 vote
0 answers
135 views

TypeError: Attempting to change the setter of an unconfigurable property. phantomjs + vue 3

My project is in vuejs. I have written simple script to take screenshot of login page using phantomjs. But, No luck :-( I have been searching solution for the above error from last 4 days. Code : 'use ...
Daxesh Lad's user avatar
11 votes
2 answers
8k views

Phantomjs won't install: Autoconfiguration Error

When trying to install Phantomjs on Ubuntu 22.04, I get the following error: There are some Q.& A's here from 2015-2022, I tried all of the included suggestions. https://github.com/ariya/phantomjs/...
user26732's user avatar
  • 229
0 votes
1 answer
865 views

SSL Error when using html-pdf in a Render instance

I'm using the html-pdf library to generate PDF files from HTML, and it's working great on my machine. However, when attempting to use this on an instance of the project hosted on Render, I'm getting ...
Robert May's user avatar
0 votes
0 answers
84 views

PDF created with phantomjs seems to use ASCII

A am running an application in Meteor on Galaxy. I use phantomjs to generate a PDF-file from an HTML string. When I print the HTML-string in the console, all characters appear correct, but the ...
johanmetlef's user avatar
1 vote
0 answers
226 views

Can't use library pdf-creator-node to generate file pdf error phantomjs

Error: spawn /app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:277:19) at onErrorNT (internal/child_process.js:472:...
Tài Nguyễn's user avatar
0 votes
0 answers
460 views

highcharts-export-server does not finish

I have highcharts-export-server v2.1.0 (which uses phantomjs v.2.1.1) configured on 2 servers. Problem: One server can produce a chart from my "test" .json to .svg, the other server cannot /...
DavidDunham's user avatar
  • 1,259
0 votes
3 answers
827 views

How do I run my Selenium IDE test cases in headless mode?

I am working on selenium IDE scripts and want to run the scripts in headless mode to do other stuff while smoke test are running in headless mode How can I do that?
Dipa's user avatar
  • 21
0 votes
0 answers
44 views

Speeding up the image generation process with PhantomJS and PHP

So I have this local script generate.php that loops through some special folder structure of websites on my localhost and executes a phantomJS script using the PHP exec function to generate Thumbnails ...
Laisender's user avatar
  • 714
0 votes
0 answers
121 views

PhantomJS Working on Server but Not XAMPP

I have problem with phantomJS at XAMPP(Installed) MAC. Last time, I am using XAMPP-VM (for Mac) but since update to Monterey. It does not work. I have problem with a new environment here. When trying ...
Roohome Com's user avatar
1 vote
0 answers
127 views

Session.desiredCapabilities are ignored by Session.negotiatedCapabilities when running PhantomJSDriver

I have a requirement where I need to run test scenarios of validating my webpage in Amazon linux2 instance without any GUI. Hence I selected PhantomJS/GhostDriver to perform these executions. I also ...
Arka's user avatar
  • 101
0 votes
0 answers
228 views

Making tables with Kable, issues with phantomJS install and ghostscript

I want to make tables with Kable, but I am unable to successfully install phantomJS. I found no detailed/helpful articles on this. The code below is what I have used on a MAC OSx computer to make the ...
ecology's user avatar
  • 606

1
2 3 4 5
153