How do I click an element in PhantomJS?  page.evaluate(function() {     document.getElementById('idButtonSpan').click();   });   This gives me an error "undefined is not a function..."  If I instead    return document.getElementById...
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 links from a page that generates content dynamically as the user scroll down to the bottom (infinite scrolling). I have tried doing different things with Phantomjs but not able to gather links beyond first page. Let say the el...
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...
I'm looking for an example of requesting a webpage, waiting for the JavaScript to render (JavaScript modifies the DOM), and then grabbing the HTML of the page.  This should be a simple example with an obvious use-case for PhantomJS. I can't...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.