Skip to content

Implementation status of Puppetter APIs

kura52 edited this page Apr 22, 2018 · 3 revisions

For details of puppeteer api, please see https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md

Note: Some behavior is different from puppeteer.

Status API
puppeteer.launch([options])
browser.newPage()
browser.pages()
browser.userAgent()
browser.version()
page.on('dialog')
page.on('domcontentloaded')
page.on('load')
page.$(selector)
page.$$(selector)
page.$$eval(selector, pageFunction[, ...args])
page.$eval(selector, pageFunction[, ...args])
page.$x(expression)
page.addScriptTag(options)
page.addStyleTag(options)
page.bringToFront()
page.click(selector[, options])
page.close()
page.content()
page.cookies(...urls)
page.deleteCookie(...cookies)
page.evaluate(pageFunction, ...args)
page.focus(selector)
page.frames()
page.goBack(options)
page.goForward(options)
page.goto(url, options)
page.hover(selector)
page.keyboard
page.mainFrame()
page.mouse
page.pdf(options)
page.reload(options)
page.screenshot([options])
page.select(selector, ...values)
page.setContent(html)
page.setCookie(...cookies)
page.setExtraHTTPHeaders(headers)
page.setUserAgent(userAgent)
page.setViewport(viewport)
page.title()
page.type(selector, text[, options])
page.url()
page.waitFor(selectorOrFunctionOrTimeout[, options[, ...args]])
page.waitForFunction(pageFunction[, options[, ...args]])
page.waitForNavigation(options)
page.waitForSelector(selector[, options])
page.waitForXPath(xpath[, options])
keyboard.down(key[, options])
keyboard.press(key[, options])
keyboard.sendCharacter(char)
keyboard.type(text, options)
keyboard.up(key)
mouse.click(x, y, [options])
mouse.down([options])
mouse.move(x, y, [options])
mouse.up([options])
dialog.accept([promptText])
dialog.dismiss()
dialog.message()
dialog.type()
frame.$(selector)
frame.$$(selector)
frame.$$eval(selector, pageFunction[, ...args])
frame.$eval(selector, pageFunction[, ...args])
frame.$x(expression)
frame.addScriptTag(options)
frame.addStyleTag(options)
frame.click(selector[, options])
frame.content()
frame.evaluate(pageFunction, ...args)
frame.focus(selector)
frame.hover(selector)
frame.name()
frame.parentFrame()
frame.select(selector, ...values)
frame.setContent(html)
frame.title()
frame.type(selector, text[, options])
frame.url()
frame.waitFor(selectorOrFunctionOrTimeout[, options[, ...args]])
frame.waitForFunction(pageFunction[, options[, ...args]])
frame.waitForSelector(selector[, options])
frame.waitForXPath(xpath[, options])
elementHandle.$(selector)
elementHandle.$$(selector)
elementHandle.$x(expression)
elementHandle.boundingBox()
elementHandle.boxModel()
elementHandle.click([options])
elementHandle.focus()
elementHandle.hover()
elementHandle.press(key[, options])
elementHandle.screenshot([options])
elementHandle.type(text[, options])
puppeteer.connect(options)
puppeteer.createBrowserFetcher([options])
puppeteer.defaultArgs()
puppeteer.executablePath()
browserFetcher.canDownload(revision)
browserFetcher.download(revision[, progressCallback])
browserFetcher.localRevisions()
browserFetcher.platform()
browserFetcher.remove(revision)
browserFetcher.revisionInfo(revision)
browser.on('disconnected')
browser.on('targetchanged')
browser.on('targetcreated')
browser.on('targetdestroyed')
browser.on('console')
browser.close()
browser.disconnect()
browser.process()
browser.targets()
browser.wsEndpoint()
page.on('error')
page.on('frameattached')
page.on('framedetached')
page.on('framenavigated')
page.on('metrics')
page.on('pageerror')
page.on('request')
page.on('requestfailed')
page.on('requestfinished')
page.on('response')
page.authenticate(credentials)
page.coverage
page.emulate(options)
page.emulateMedia(mediaType)
page.evaluateHandle(pageFunction, ...args)
page.evaluateOnNewDocument(pageFunction, ...args)
page.exposeFunction(name, puppeteerFunction)
page.metrics()
page.queryObjects(prototypeHandle)
page.setCacheEnabled(enabled)
page.setDefaultNavigationTimeout(timeout)
page.setJavaScriptEnabled(enabled)
page.setOfflineMode(enabled)
page.setRequestInterception(value)
page.tap(selector)
page.target()
page.touchscreen
page.tracing
page.viewport()
touchscreen.tap(x, y)
tracing.start(options)
tracing.stop()
dialog.defaultValue()
consoleMessage.args()
consoleMessage.text()
consoleMessage.type()
frame.childFrames()
frame.evaluateHandle(pageFunction, ...args)
frame.executionContext()
frame.isDetached()
frame.tap(selector)
executionContext.evaluate(pageFunction, ...args)
executionContext.evaluateHandle(pageFunction, ...args)
executionContext.frame()
executionContext.queryObjects(prototypeHandle)
jsHandle.asElement()
jsHandle.dispose()
jsHandle.executionContext()
jsHandle.getProperties()
jsHandle.getProperty(propertyName)
jsHandle.jsonValue()
elementHandle.asElement()
elementHandle.contentFrame()
elementHandle.dispose()
elementHandle.executionContext()
elementHandle.getProperties()
elementHandle.getProperty(propertyName)
elementHandle.jsonValue()
elementHandle.tap()
elementHandle.toString()
elementHandle.uploadFile(...filePaths)
request.abort([errorCode])
request.continue([overrides])
request.failure()
request.frame()
request.headers()
request.method()
request.postData()
request.redirectChain()
request.resourceType()
request.respond(response)
request.response()
request.url()
response.buffer()
response.fromCache()
response.fromServiceWorker()
response.headers()
response.json()
response.ok()
response.request()
response.securityDetails()
response.status()
response.text()
response.url()
securityDetails.issuer()
securityDetails.protocol()
securityDetails.subjectName()
securityDetails.validFrom()
securityDetails.validTo()
target.createCDPSession()
target.page()
target.type()
target.url()
cdpSession.detach()
cdpSession.send(method[, params])
coverage.startCSSCoverage(options)
coverage.startJSCoverage(options)
coverage.stopCSSCoverage()
coverage.stopJSCoverage()
Clone this wiki locally