7,567 questions
1
vote
1
answer
82
views
How to save a leaflet or mapview map as pdf with actionButton
Trying to save a leaflet map to png works fine but when saving as pdf, it saves the file but the legend does not show the colors only text. Can someone let me know what am I missing? Example below and ...
0
votes
1
answer
48
views
PhantomJS frozen stuck at blank terminal after trying use $.ajax
I have been porting my code to PhantomJs and have been having a hard time with using $.ajax in Jquery. My code runs perfectly when the function call is dropped. I am new-ish to JavaScript other than ...
2
votes
0
answers
73
views
Why can't subprocess.Open find this executable (phantomjs)
[update]
I think the error message here is actually misleading. It turns out if I try to run the command phantomjs, I get an error:
-bash: /usr/bin/phantomjs: cannot execute: required file not found
I ...
0
votes
1
answer
52
views
VBA (Excel) - PhantomJS driver not working with "FindElementByXPath" -> "NoSuchElementError" (working with Chrome Driver)
Use of PhantomJS: no correct/ expected behaviour
Website with web elements
Sub Logon()
Dim obj As New PhantomJSDriver 'PHANTOMdriver
obj.Start "PhantomJS", ""
With obj
....
1
vote
1
answer
97
views
I want my JS to be executed when i'm loading my page HTML through PhantomJS
I'm trying to load my HTML until my JS code is executed to translate my HTML using PHP. I would then like to retrieve the content of this translated HTML. I've done a lot of research but I can't get ...
2
votes
0
answers
84
views
Could not find an executable /home/ubuntu/.phantomjs/2.1.1/x86_64-linux/bin/phantomjs that matched the requirements '>= 1.8.1', '< 3.0'
Cliver::Dependency::NotFound:Could not find an executable ["phantomjs"] on your path
I'm doing scraping/processing for some of my data using capybara. I have following gem installed
gem '...
0
votes
1
answer
120
views
Download file with phantomJS R
I want to download a file using webdriver package (phantomJS), however whenever I click/enter the object, nothing happens. I intend to click on 'Download dos dados' and then click and download 'Baixar ...
0
votes
1
answer
168
views
Extract string literal type of an interface's function's arguments
In @types/phantom, there is a WebPage interface, which includes the following function:
interface WebPage {
// ...
property(
key:
| "content"
| "...
2
votes
0
answers
164
views
How can I use package RSelenium in a Shiny app hosted on shinyapps.io?
Hello smart people of the internet,
I have written an app in R Shiny that uses the package RSelenium (and specifically, its rsDriver function). It works fine on my local machine. However, when I try ...
0
votes
0
answers
78
views
Facing error in generating the chart using the sample test code mentioned in node-export-server git repository
I am facing issue in generating the charts in my local. I have followed the steps mentioned in the 'https://github.com/highcharts/node-export-server' and used npm install for installing post cloning ...
0
votes
0
answers
23
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 ...
0
votes
0
answers
111
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 ...
0
votes
1
answer
972
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:
...
1
vote
0
answers
201
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 ...
0
votes
1
answer
83
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.