Questions tagged as 'phantomjs'

1
answer

How to use the Selenium WebDriver findElement (By.xpath ())?

Hello, please, I'm trying to get information from a public site: name of a vote, date and table with list of votes This site: link I used Python 3, selenium webdriver and PhantomJS: from selenium import webdriver path_to_phantomjs = '...
asked by 31.10.2017 / 11:47
1
answer

Simulate a click, like sharing a link to Google+ without clicking

My challenge is to make a sharing of my site to Google+ without clicks. I have an account with google [email protected] , I created a profile in G+ . The idea is through localhost to create a script where when it is accessed...
asked by 16.11.2017 / 11:33
0
answers

Phantomjs I can not assign value to a property of an array of objects

I'm creating a script that takes links from a phantomjs site. My idea is to store in a vector the link with its innerHTMl and then I need to modify the link, but when I modify it later I can not. My code: var player = 0; var links = page.ev...
asked by 26.08.2016 / 17:50
0
answers

PhantomJs wait for ajax Request

I'm here with an immense difficulty in PhantomJS; Come on since yesterday I'm trying to automate the denatran process inside a system. How will this work? I already have the user's CPF and RENAVAN, I have a script done with an API that solves th...
asked by 20.06.2016 / 21:28
0
answers

Plugin execution not covered by lifecycle configuration

I have implemented unit tests using Jasmine in my application and want to configure in Maven a continuous integration so that the tests run automatically. It is already working, however an error is appearing in the Eclipse console and I would li...
asked by 17.03.2016 / 13:49
1
answer

How to get text, in CSS element receiving 2 class

I need to collect text from an angled system, where the element receives 2 CSS classes <div class="title ng-scope">80</div> I tested several ways to capture the text, but it does not return (the commented lines shows the attempt...
asked by 14.04.2017 / 23:13
1
answer

How to use PhantomJS to access an API with response in JSON

How to use PhantomJS to access an API whose response is JSON and not HTML and process the result? I would like the example to use the Stackoverflow's own Portuguese API, so that the script returns the title and the names of the...
asked by 09.02.2014 / 19:39
1
answer

PhantomJs ignoring style no header

I am capturing the position of some elements in the DOM of an html but the PhantomJs is ignoring the padding applied via css. After doing the page.evaluate I capture the top / left: var res = page.evaluate(function () {...
asked by 29.12.2016 / 15:28
0
answers

CasperJS - Download a PDF file

Good afternoon, I would like to download a PDF file by clicking a button that submits a form using POST. In this case I have no URL to use the casper download method. Please see the HTML code below: <html> <head> <title>Bolet...
asked by 06.05.2016 / 22:35
1
answer

Generating PDF from a Phantom Web Page

I'm developing in Node an application where I have an html page, which I fill in with bank data and then I need to save this page in PDF. I'm trying to use Phatom, I've tried following several tutorials, but when I pass the page URL it saves the...
asked by 05.12.2018 / 18:01