Spent some time to read the documentation, it should be obvious afterwards.
var page = require('webpage').create();
page.open('http://google.com', function () {
console.log(page.content);
phantom.exit();
});
More Related Contents:
- Menu does not align correctly in Safari
- My inline-block elements are not lining up properly
- How to make CSS3 rounded corners hide overflow in Chrome/Opera
- Bootstrap full-width with 2 different backgrounds (and 2 columns)
- How to add a browser tab icon (favicon) for a website?
- Minimum and maximum value of z-index?
- How can I find an element by CSS class with XPath?
- Should I use px or rem value units in my CSS? [closed]
- Why media queries has less priority than no media queries css
- Flexbox fill available space vertically
- Outline radius?
- Best approach to real time http streaming to HTML5 video client [closed]
- Is HTML5 valid XML?
- Easier way to create circle div than using an image?
- Customizing Increment Arrows on Input of Type Number Using CSS
- Bootstrap Accordion button toggle “data-parent” not working
- How can I make a display:flex container expand horizontally with its wrapped contents?
- How to make div’s percentage width relative to parent div and not viewport
- Default text which won’t be shown in drop-down list
- Controlling image load order in HTML
- Absolute position and Overflow:hidden
- Prevent tabstop on A element (anchor link) in HTML
- What is the ::content/::slotted pseudo-element and how does it work?
- How to remove/ignore :hover css style on touch devices
- Placing a within a
- html5 input for money/currency
- Style a checkbox in firefox — remove check and border
- Centering an image within a div
- Is any way that is safe to display videos in a browser
- CSS replacement for