Skip to content

narinari/purescript-toppokki

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PureScript-Toppokki

Build Status

A binding to puppeteer to drive headless Chrome.

This module is incomplete, and you can help by submitting PRs.

Named for glorious Tteok-bokki.

Usage

import Toppokki as T

main = launchAff_ do
  browser <- T.launch
  page <- T.newPage browser
  T.goto (T.URL "https://example.com") page
  content <- T.content page
  Assert.assert "content is non-empty string" (String.length content > 0)
  _ <- T.screenshot {path: "./test/test.png"} page
  _ <- T.pdf {path: "./test/test.pdf"} page
  T.close browser

About

A binding to puppeteer to drive headless Chrome.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PureScript 79.6%
  • JavaScript 19.7%
  • HTML 0.7%