I'm trying to use phantomJS (what an awesome tool btw!) to submit a form for a page that I have login credentials for, and then output the content of the destination page to stdout. I'm able to access the form and set its values successfull...
I'm using PhantomJS page.evaluate() to do some scraping. My problem is that the code I pass to the webkit page is sandboxed, and so has no access to the variables of my main phantom script. This makes it hard make the scraping code generic.  pa...
I am trying to scrape a website but I don't get some of the elements, because these elements are dynamically created.  I use the cheerio in node.js and My code is below.  var request = require('request'); var cheerio = require('chee...
Users click this link:  <span onclick="slow_function_that_fills_the_panel(); $('#panel').show();">   Now I'm simulating the click in phantomjs:  page.evaluate(   function() { $("#panel").click(); } ); console.log(&...
I have a webpage with an iframe.  I'd like to access the contents of the iframe using CasperJS.  In particular, I need to click buttons and fill a form.  How can I do that?  The main webpage is main.html:  <html><body> <a id='...
I write some code for to convert svg to inline svg and take screenshot of that div . Please check .Please copy this code int to your local host and test it . Because screen shot is different in different width .   https://jsfiddle.net/7bqukhff/15/...
I'm trying to make it so that CasperJS will open up every link in an array of links. I have it so that after I open a link, it will display the title of that page. Yet when I run it, nothing is displayed.   I can use a for loop to display the lin...
Below is an example of PhantomJS that gets some element by DOM id from an external webpage:  var page = require('webpage').create(); console.log('The default user agent is ' + page.settings.userAgent); page.settings.userAgent = 'S...
I have simple page with javascript which validates email written in input:  email.html:  <!DOCTYPE html> <html>     <head>         <title>Email validation</title>         <script src="email.js"></script&...
I have written some parts of a PhantomJS application. I am parsing on a website where I am writing username and password to a formular. After this I have to click on a link. Whereas I get this error:    TypeError: 'undefined' is not a functio...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.