Skip to content

Commit b3fe660

Browse files
committed
Add evaluateScript option to the README
1 parent c50ec10 commit b3fe660

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ config = {
132132
"phantomArgs": [], // array of strings used as phantomjs args e.g. ["--ignore-ssl-errors=yes"]
133133
"script": '/url', // Absolute path to a custom phantomjs script, use the file in lib/scripts as example
134134
"timeout": 30000, // Timeout that will cancel phantomjs, in milliseconds
135+
"evaluateScript": "function () { console.log(document.title) }", // Evaluate a script in the context of the web page (console.log are collected in consoleMessages field in the JSON returned by the callback: res)
135136

136137
// HTTP Headers that are used for requests
137138
"httpHeaders": {

0 commit comments

Comments
 (0)