source: other-projects/FileTransfer-WebSocketPair/Themes/themebuilder/bin/phantomjs-1.9.2-windows/examples/phantomwebintro.coffee@ 31525

Last change on this file since 31525 was 31525, checked in by ak19, 7 years ago

Nathan provided more stuff: Themes folder contains Sencha's Themebuilder which generates GXT Themes. It includes the .theme and generated .jar files for the project theme.

File size: 442 bytes
Line 
1# Read the Phantom webpage '#intro' element text using jQuery and "includeJs"
2
3page = require('webpage').create()
4
5page.onConsoleMessage = (msg) -> console.log msg
6
7page.open "http://www.phantomjs.org", (status) ->
8 if status is "success"
9 page.includeJs "http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js", ->
10 page.evaluate ->
11 console.log "$(\"#intro\").text() -> " + $("#intro").text()
12 phantom.exit()
13
Note: See TracBrowser for help on using the repository browser.