History¶
Version 0.0.25 (2018-09-27)¶
- Fix miss-spelled methods and functions
- Change
Browser.isIncognite
toBrowser.isIncognito
- Change
Browser.createIncogniteBrowserContext
toBrowser.createIncognitoBrowserContext
- Change
chromium_excutable
tochromium_executable
- Remove
craete
function inpage.py
- Change
Version 0.0.24 (2018-09-12)¶
Catch up puppeteer v1.6.0
- Add
ElementHandle.isIntersectingViewport()
- Add
reportAnonymousScript
option toCoverage.startJSCoverage()
- Add
Page.waitForRequest
andPage.waitForResponse
methods - Now possible to attach to extension background pages with
Target.page()
- Improved reliability of clicking with
Page.click()
andElementHandle.click()
Version 0.0.23 (2018-09-10)¶
Catch up puppeteer v1.5.0
- Add
BrowserContext
class - Add
Worker
class - Change
CDPSession.send
to a normal function which returns awaitable value - Add
Page.isClosed
method - Add
ElementHandle.querySelectorAllEval
andElementHandle.JJeval
- Add
Target.opener
- Add
Request.isNavigationRequest
Version 0.0.22 (2018-09-06)¶
Catch up puppeteer v1.4.0
- Add
pyppeteer.DEBUG
variable - Add
Page.browser
- Add
Target.browser
- Add
ElementHandle.querySelectorEval
andElementHandle.Jeval
- Add
runBeforeUnload
option toPage.close
method - Change
Page.querySelectorEval
to raiseElementHandleError
when element which matchesselector
is not found - Report ‘Log’ domain entries as ‘console’ events
- Fix
Page.goto
to return response when page pushes new state - (OS X) Suppress long log when extracting chromium
Version 0.0.21 (2018-08-21)¶
Catch up puppeteer v1.3.0
- Add
pyppeteer-install
command - Add
autoClose
option tolaunch
function - Add
loop
option tolaunch
function (experimental) - Add
Page.setBypassCSP
method Page.tracing.stop
returns result data- Rename
documentloaded
todomcontentloaded
onwaitUntil
option - Fix
slowMo
option - Fix anchor navigation
- Fix to return response via redirects
- Continue to find WS URL while process is alive
Version 0.0.20 (2018-08-11)¶
- Run on msys/cygwin, anyway
- Raise error correctly when connection failed (PR#91)
- Change browser download location and temporary user data directory to:
- If
$PYPPETEER_HOME
environment variable is defined, use this location - Otherwise, use platform dependent locations, based on appdirs:
'C:\Users\<username>\AppData\Local\pyppeteer'
(Windows)'/Users/<username>/Library/Application Support/pyppeteer'
(OS X)'/home/<username>/.local/share/pyppeteer'
(Linux)- or in
'$XDG_DATA_HOME/pyppeteer'
if$XDG_DATA_HOME
is defined
- or in
- If
- Introduce
$PYPPETEER_CHROMIUM_REVISION
- Introduce
$PYPPETEER_HOME
- Add
logLevel
option tolaunch
andconnect
functions - Add page
close
event - Add
ElementHandle.boxModel
method - Add an option to disable timeout for
waitFor
functions
Version 0.0.19 (2018-07-05)¶
Catch up puppeteer v1.2.0
- Add
ElementHandle.contentFrame
method - Add
Request.redirectChain
method Page.addScriptTag
accepts a new optiontype
Version 0.0.18 (2018-07-04)¶
Catch up puppeteer v1.1.1
- Add
Page.waitForXPath
andFrame.waitForXPath
Page.waitFor
accepts xpath string which starts with//
- Add
Response.fromCache
andResponse.fromServiceWorker
- Add
SecurityDetails
class andresponse.securityDetails
- Add
Page.setCacheEnabled
method - Add
ExecutionContext.frame
- Add
dumpio
option tolaunch
function - Add
slowMo
option toconnect
function launcher.connect
can be access from package topfrom pyppeteer import connect
is now valid
- Add
Frame.evaluateHandle
- Add
Page.Events.DOMContentLoaded
Version 0.0.17 (2018-04-02)¶
- Mark as alpha
- Gracefully terminate browser process
Request.method
andRequest.postData
returnNone
if no data- Change
Target.url
andTarget.type
to properties - Change
Dialog.message
andDialog.defaultValue
to properties - Fix: properly emit
Browser.targetChanged
events - Fix: properly emit
Browser.targetDestroyed
events
Version 0.0.16 (2018-03-23)¶
- BugFix: Skip SIGHUP option on windows (windows does not support this signal)
Version 0.0.15 (2018-03-22)¶
Catch up puppeteer v1.0.0
- Support
raf
andmutation
polling forwaitFor*
methods - Add
Page.coverage
to support JS and CSS coverage - Add XPath support with
Page.xpath
,Frame.xpath
, andElementHandle.xpath
- Add
Target.createCDPSession
to work with raw Devtools Protocol - Change
Frame.executionContext
from property to coroutine - Add
ignoreDefaultArgs
option topyppeteer.launch
- Add
handleSIGINT
/handleSIGTERM
/handleSIGHUP
options topyppeteer.launch
- Add
Page.setDefaultNavigationTimeout
method Page.waitFor*
methods acceptJSHandle
as argument- Implement
Frame.content
andFrame.setContent
methods page.tracing.start
accepts custom tracing categories option- Add
Browser.process
property - Add
Request.frame
property
Version 0.0.14 (2018-03-14)¶
- Read WS endpoint from web interface instead of stdout
- Pass environment variables of python process to chrome by default
- Do not limit size of websocket frames
- BugFix:
Keyboard.type
Page.Events.Metrics
Version 0.0.13 (2018-03-10)¶
Catch up puppeteer v0.13.0
pyppeteer.launch()
is now coroutine- Implement
connect
function PYPPETEER_DOWNLOAD_HOST
env variable specifies host part of URL to download chromium- Rename
setRequestInterceptionEnable
tosetRequestInterception
- Rename
Page.getMetrics
toPage.metrics
- Implement
Browser.pages
to access all pages- Add
Target
class and some new method on Browser
- Add
- Add
ElementHandle.querySelector
andElementHandle.querySelectorAll
- Refactor NavigatorWatcher
- add
documentloaded
,networkidle0
, andnetworkidle2
options
- add
Request.abort
accepts error codeaddScriptTag
andaddStyleTag
returnElementHandle
- Add
force_expr
option toevaluate
method Page.select
returns selected values- Add
pyppeteer.version
andpyppeteer.version_info
- BugFix:
- Do not change original options dictionary
Page.frames
Page.queryObjects
Page.exposeFunction
- Request interception
- Console API
- websocket error on closing browser (#24)
Version 0.0.12 (2018-03-01)¶
- BugFix (#33)
Version 0.0.11 (2018-03-01)¶
Catch up puppeteer v0.12.0
- Remove
ElementHandle.evaluate
- Remove
ElementHandle.attribute
- Deprecate
Page.plainText
- Deprecate
Page.injectFile
- Add
Page.querySelectorAllEval
- Add
Page.select
andPage.type
- Add
ElementHandle.boundingBox
andElementHandle.screenshot
- Add
ElementHandle.focus
,ElementHandle.type
, andElementHandle.press
- Add
getMetrics
method - Add
offlineMode
Version 0.0.10 (2018-02-27)¶
- Enable to import
launch
from package root - Change
browser.close
to coroutine function - Catch up puppeteer v0.11.0
Version 0.0.9 (2017-09-09)¶
- Delete temporary user data directory when browser closed
- Fix bug to fail extracting zip on mac
Version 0.0.8 (2017-09-03)¶
- Change chromium revision
- Support steps option of
Mouse.move()
- Experimentally supports python 3.5 by py-backwards
Version 0.0.7 (2017-09-03)¶
- Catch up puppeteer v0.10.2
- Add
Page.querySelectorEval
(Page.$eval
in puppeteer) - Deprecate
ElementHandle.attribute
- Add
Touchscreen
class and implementPage.tap
andElementHandle.tap
- Add
Version 0.0.6 (2017-09-02)¶
- Accept keyword arguments for options
- Faster polling on
waitFor*
functions - Fix bugs
Version 0.0.5 (2017-08-30)¶
- Implement pdf printing
- Implement
waitFor*
functions
Version 0.0.4 (2017-08-30)¶
- Register PyPI