Skip to content

Instantly share code, notes, and snippets.

@tylertrotter
Created July 6, 2016 16:30
Show Gist options
  • Save tylertrotter/be8da3e777c16a2b631d9de9fc94f70b to your computer and use it in GitHub Desktop.
Save tylertrotter/be8da3e777c16a2b631d9de9fc94f70b to your computer and use it in GitHub Desktop.
Horseman {
ready:
Promise {
_bitField: 69206016,
_fulfillmentHandler0: undefined,
_rejectionHandler0:
Promise {
_bitField: 167772161,
_fulfillmentHandler0: [Function: successAdapter],
_rejectionHandler0: undefined,
_promise0: undefined,
_receiver0: undefined },
_promise0: undefined,
_receiver0: undefined,
_boundTo: [Circular] },
options:
{ timeout: 5000,
interval: 50,
weak: true,
clientScripts: [],
loadImages: true,
sslProtocol: 'any',
injectJquery: true,
switchToNewTab: false,
injectBluebird: false,
phantomPath: undefined },
id: 1,
targetUrl: 'http://www.google.com',
responses:
[ 'http://www.google.com/': 302,
'https://www.google.com/?gws_rd=ssl': 200,
'https://www.google.com/images/nav_logo242.png': 200,
'https://www.google.com/xjs/_/js/k=xjs.s.en_US.C3nIAsmzXu8.O/m=sx,c,sb,cdos,cr,elog,jsa,r,hsm,qsm,j,p,d,csi/am=AJQEEIVE_H8ICLcQLEgFGAwC/rt=j/d=1/t=zcms/rs=ACT90oHTXeHlEiZfjLq5Poon9x0p5MhY0Q': 200,
'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png': 200,
'https://ssl.gstatic.com/gb/images/i1_1967ca6a.png': 200,
'https://www.gstatic.com/og/_/js/k=og.og2.en_US.Q76M4N9eFug.O/rt=j/m=def/exm=in,fot/d=1/ed=1/rs=AA2YrTtwUfn6ZjmIMkOSiVIiefBPaPtMlw': 200,
'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw%3D%3D': null,
'https://www.google.com/textinputassistant/tia.png': 200 ],
tabs:
[ { setFn: [Function],
get: [Function],
set: [Function],
evaluate: [Function],
waitForSelector: [Function],
addCookie: [Function],
childFramesCount: [Function],
childFramesName: [Function],
clearCookies: [Function],
close: [Function],
currentFrameName: [Function],
deleteCookie: [Function],
evaluateJavaScript: [Function],
evaluateAsync: [Function],
getPage: [Function],
go: [Function],
goBack: [Function],
goForward: [Function],
includeJs: [Function],
injectJs: [Function],
open: [Function],
openUrl: [Function],
release: [Function],
reload: [Function],
render: [Function],
renderBase64: [Function],
sendEvent: [Function],
setContent: [Function],
stop: [Function],
switchToFocusedFrame: [Function],
switchToFrame: [Function],
switchToChildFrame: [Function],
switchToMainFrame: [Function],
switchToParentFrame: [Function],
uploadFile: [Function],
clearMemoryCache: [Function],
onPageCreated: [Function],
onPageCreated2: [Function],
onResourceReceived: [Function],
onLoadFinished: [Function: loadFinishedSetup],
onClosing: [Function],
onTimeout: [Function],
loadedPromise: [Function],
loadDone: undefined } ],
onTabCreated: [Function],
onTabClosed: [Function],
lastActionPageCnt: undefined,
curActionPageCnt: 0,
phantom:
{ process:
ChildProcess {
domain: null,
_events: [Object],
_eventsCount: 2,
_maxListeners: undefined,
_closesNeeded: 3,
_closesGot: 0,
connected: false,
signalCode: null,
exitCode: null,
killed: false,
spawnfile: 'phantomjs',
_handle: [Object],
spawnargs: [Object],
pid: 9748,
stdin: [Object],
stdout: [Object],
stderr: [Object],
stdio: [Object],
POSTING: false },
setProxy: [Function],
createPage: [Function],
injectJs: [Function],
addCookie: [Function],
clearCookies: [Function],
deleteCookie: [Function],
set: [Function],
get: [Function],
exit: [Function],
on: [Function] },
pageCnt: 1,
page:
{ setFn: [Function],
get: [Function],
set: [Function],
evaluate: [Function],
waitForSelector: [Function],
addCookie: [Function],
childFramesCount: [Function],
childFramesName: [Function],
clearCookies: [Function],
close: [Function],
currentFrameName: [Function],
deleteCookie: [Function],
evaluateJavaScript: [Function],
evaluateAsync: [Function],
getPage: [Function],
go: [Function],
goBack: [Function],
goForward: [Function],
includeJs: [Function],
injectJs: [Function],
open: [Function],
openUrl: [Function],
release: [Function],
reload: [Function],
render: [Function],
renderBase64: [Function],
sendEvent: [Function],
setContent: [Function],
stop: [Function],
switchToFocusedFrame: [Function],
switchToFrame: [Function],
switchToChildFrame: [Function],
switchToMainFrame: [Function],
switchToParentFrame: [Function],
uploadFile: [Function],
clearMemoryCache: [Function],
onPageCreated: [Function],
onPageCreated2: [Function],
onResourceReceived: [Function],
onLoadFinished: [Function: loadFinishedSetup],
onClosing: [Function],
onTimeout: [Function],
loadedPromise: [Function],
loadDone: undefined },
lastVal: undefined }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment