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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implemented. Gives the PhantomJS version which is compatible to
the SlimerJS implementation.
webdriverMode
methods
addCookie(cookie)
Implemented
clearCookies()
Implemented
defaultErrorHandler(message, stack)
Implemented
deleteCookie(cookieName)
Implemented
exit(returnValue)
Implemented
injectJs(filename)
Implemented
onerror(msg, trace)
Implemented
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
customHeaders
Implemented
event
Implemented
focusedFrameName
Implemented
frameContent
Implemented
frameName
Implemented
framePlainText
Implemented
frameTitle
Implemented
frameUrl
Implemented
framesCount
Implemented
framesName
Implemented
libraryPath
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.javascriptEnabled
Implemented
settings.loadImages
Implemented
settings.localToRemoteUrlAccessEnabled
settings.XSSAuditingEnabled
settings.webSecurityEnabled
settings.javascriptCanOpenWindows
settings.javascriptCanCloseWindows
settings.userAgent
Implemented
settings.userName
Implemented
settings.password
Implemented
settings.maxAuthAttempts
Implemented
settings.resourceTimeout
settings.plainTextAllContent
Implemented (SlimerJS only)
title
Implemented
url
Implemented
viewportSize
Implemented
windowName
Implemented
zoomFactor
Implemented
methods
addCookie(Cookie)
Implemented
childFramesCount()
Implemented. deprecated
childFramesName()
Implemented. deprecated
clearCookies()
Implemented
close()
Implemented
currentFrameName()
Implemented. deprecated
deleteCookie(cookieName)
Implemented
evaluateJavascript(str)
implemented
evaluate(function, arg1, arg2,...)
implemented
evaluateASync(function, arg1, arg2,...)
implemented
getPage(windowName)
Implemented
go(index)
Implemented
goBack()
Implemented
goForward()
Implemented
includeJs(url, callback)
implemented
injectJs(filename)
Implemented
open(url)
Implemented. SlimerJS only: it returns a promise
open(url, callback)
Implemented. SlimerJS only: it returns a promise
open(url, httpConf)
Implemented. SlimerJS only: it returns a promise. Only GET and POST method are supported.
open(url, httpConf, callback)
Implemented. SlimerJS only: it returns a promise. Only GET and POST method are supported.
open(url, operation, data)
Implemented. SlimerJS only: it returns a promise. Only GET and POST method are supported.
open(url, operation, data, callback)
Implemented. SlimerJS only: it returns a promise. Only GET and POST method are supported.
open(url, operation, data, headers, callback)
Implemented. SlimerJS only: it returns a promise. Only GET and POST method are supported.
openUrl(url, httpConf, settings)
Implemented. SlimerJS only: it returns a promise. Only GET and POST method are supported.
release()
Implemented
reload()
Implemented
render(filename, options)
Implemented. Only PNG, JPG, BMP, ICO and PDF are supported for now.
renderBytes(format, options)
Implemented. SlimerJS only. Only PNG, BMP, ICO and JPG are supported for now.
renderBase64(format, options)
Implemented. Only PNG and JPG are supported for now.
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
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)