A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Implemented (with support of special value 'binary' for system.stdout, Slimerjs only)
page
Not implemented. Irrelevant for SlimerJS
remoteDebugPort
(phjs 2.1)
scriptName
Implemented (deprecated, removed in phjs 2.0)
version
Implemented. Gives the PhantomJS version which is compatible to
the SlimerJS implementation.
webdriverMode
Implemented
aboutToExit
Implemented
methods
addCookie(cookie)
Implemented
clearCookies()
Implemented
defaultErrorHandler(message, stack)
Implemented
deleteCookie(cookieName)
Implemented
debugExit(returnValue)
Implemented
exit(returnValue)
Implemented
fullyDecodeUrl(url)
Implemented (phjs 2.1)
injectJs(filename)
Implemented
loadModule(moduleSource, filename)
onerror(msg, trace)
Implemented
proxy()
Implemented (phjs 2.1)
resolveRelativeUrl(url, base)
Implemented (phjs 2.1)
setProxy(host, port, proxyType, user, password)
Implemented (phjs 2.0)
The first parameter may be a hostname, IP address or auto-config URL (PAC; for config-url proxy type; SlimerJS only).
slimer object
It will contain API that does not exists in PhantomJS.
version
Implemented. Gives the version of SlimerJS
clearHttpAuth()
Implemented.
exit()
Implemented.
CommonJS API
require(modulename)
Implemented
require.paths
Implemented. SlimerJS only. Array of path where modules can be found
Module: webpage
create()
Implemented
WebPage object
properties
canGoBack
Implemented
canGoForward
Implemented
clipRect
Implemented
content
Implemented.
captureContent
Implemented. list of regexp matching content
types of resources for which you want to retrieve
the content. The content is then set on the body
property of the response object received by your
onResourceReceived callback (SlimerJS only)
cookies
Implemented (phjs 2.0)
cookieJar
(phjs 2.0)
customHeaders
Implemented
event
Implemented
focusedFrameName
Implemented
frameContent
Implemented
frameName
Implemented
framePlainText
Implemented
frameTitle
Implemented
frameUrl
Implemented
framesCount
Implemented
framesName
Implemented
libraryPath
Implemented
loading
Implemented
loadingProgress
Implemented
navigationLocked
Implemented
offlineStoragePath
Implemented
offlineStorageQuota
Implemented
ownsPages
Implemented
pages
Implemented
pagesWindowName
Implemented
paperSize
Implemented. 'header' and 'footer' properties are not supported yet.
plainText
Implemented
scrollPosition
Implemented
settings
Implemented
settings.allowMedia
Implemented. SlimerJS only. Attribute stating whether or not media (audio / video) should be loaded.
Implemented. The callback is called for every
http request. Don't give it if you use one of
register* methods (it calls
registerPrefixHandler("/",
callback);)
listen(port, options, callback)
This form of call is recognized but
options are ignored in SlimerJS
onNewRequest
registerFile(path, filePath)
Implemented (SlimerJS only). Maps the given path to a file.
registerDirectory(path, directoryPath)
Implemented (SlimerJS only). Maps a path to a dir (directoryPath)
registerPathHandler(path, callback)
Implemented (SlimerJS only). Register a callback that will be called when an HTTP client request the given path.
registerPrefixHandler(prefixPath, callback)
Implemented (SlimerJS only). Register a callback that will be called when an HTTP client request a path starting with prefixPath.
request object
method
Implemented
url
Implemented
httpVersion
Implemented
headers
Implemented
post
Implemented
postRaw
Implemented
path
Implemented (SlimerJS only). Contains the path part of the URL (Readonly)
queryString
Implemented (SlimerJS only). Contains the query part of the URL (Readonly)
response object
headers
Implemented
header(name)
Implemented
setHeader(name, value)
Implemented
setEncoding(encoding)
Implemented
statusCode
Implemented
write(data)
Implemented
writeHead(statusCode, headers)
Implemented
close()
Implemented
closeGracefully()
Implemented
Module: child_process
spawn(cmd, args, opts)
exec(cmd, opts, cb)
(not implemented in PhantomJS)
execFile(file, args, options, callback)
fork(modulePath, args, options)
(not implemented in PhantomJS)
context object (returned by execFile and spawn)
pid
kill(signal)
on(event, callback)
stdout.on(event, callback)
stderr.on(event, callback)
stdin.write(chunk, encoding)
stdin.close()
stdin.end()
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.