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:
565 bytes
|
Line | |
---|
1 | // Read the Phantom webpage '#intro' element text using jQuery and "includeJs"
|
---|
2 |
|
---|
3 | var page = require('webpage').create();
|
---|
4 |
|
---|
5 | page.onConsoleMessage = function(msg) {
|
---|
6 | console.log(msg);
|
---|
7 | };
|
---|
8 |
|
---|
9 | page.open("http://www.phantomjs.org", function(status) {
|
---|
10 | if ( status === "success" ) {
|
---|
11 | page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js", function() {
|
---|
12 | page.evaluate(function() {
|
---|
13 | console.log("$(\"#intro\").text() -> " + $("#intro").text());
|
---|
14 | });
|
---|
15 | phantom.exit();
|
---|
16 | });
|
---|
17 | }
|
---|
18 | });
|
---|
19 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.