Module

Toppokki

#Puppeteer

data Puppeteer :: Type

#Browser

data Browser :: Type

#Page

data Page :: Type

#ElementHandle

#URL

newtype URL

Constructors

Instances

#Selector

newtype Selector

Constructors

Instances

#LaunchOptions

type LaunchOptions = (headless :: Boolean)

#launch

launch :: forall options trash. Union options trash LaunchOptions => {  | options } -> Aff Browser

#newPage

#goto

goto :: URL -> Page -> Aff Unit

#close

#content

#ScreenshotOptions

type ScreenshotOptions = (path :: String, type :: String, quality :: Int, fullPage :: Boolean, clip :: { x :: Int, y :: Int, width :: Int, height :: Int }, omitBackground :: Boolean)

#screenshot

screenshot :: forall options trash. Union options trash ScreenshotOptions => {  | options } -> Page -> Aff Buffer

#PDFMargin

data PDFMargin :: Type

#PDFMarginOptions

type PDFMarginOptions = (top :: String, right :: String, bottom :: String, left :: String)

#makePDFMargin

makePDFMargin :: forall options trash. Union options trash PDFMarginOptions => {  | options } -> PDFMargin

#PDFOptions

type PDFOptions = (path :: String, scale :: Int, displayHeaderFooter :: Boolean, headerTemplate :: String, footerTemplate :: String, printBackground :: Boolean, landscape :: Boolean, pageRanges :: String, format :: String, width :: String, height :: String, margin :: PDFMargin)

#pdf

pdf :: forall options trash. Union options trash PDFOptions => {  | options } -> Page -> Aff Buffer

#pageWaitForSelector

pageWaitForSelector :: forall options trash. Union options trash (visible :: Boolean, hidden :: Boolean, timeout :: Int) => Selector -> {  | options } -> Page -> Aff ElementHandle

#focus

#type_

type_ :: forall options trash. Union options trash (delay :: Int) => Selector -> String -> {  | options } -> Page -> Aff Unit

#click

#WaitUntilOption

#waitForNavigation

waitForNavigation :: forall options trash. Union options trash (waitUntil :: WaitUntilOption) => {  | options } -> Page -> Aff Unit

#getLocationRef

#unsafeEvaluateStringFunction

#runPromiseAffE1

runPromiseAffE1 :: forall a o. Fn1 a (Effect (Promise o)) -> a -> Aff o

#runPromiseAffE2

runPromiseAffE2 :: forall a b o. Fn2 a b (Effect (Promise o)) -> a -> b -> Aff o

#runPromiseAffE3

runPromiseAffE3 :: forall a b c o. Fn3 a b c (Effect (Promise o)) -> a -> b -> c -> Aff o

#runPromiseAffE4

runPromiseAffE4 :: forall a b c d o. Fn4 a b c d (Effect (Promise o)) -> a -> b -> c -> d -> Aff o

#puppeteer

#_launch

_launch :: forall options. Fn1 options (Effect (Promise Browser))

#_screenshot

_screenshot :: forall options. Fn2 options Page (Effect (Promise Buffer))

#_pdf

_pdf :: forall options. Fn2 options Page (Effect (Promise Buffer))

#_on

#_pageWaitForSelector

#_type

_type :: forall options. Fn4 Selector String options Page (Effect (Promise Unit))

#_waitForNavigation

_waitForNavigation :: forall options. Fn2 options Page (Effect (Promise Unit))

#_getLocationHref

#_unsafeEvaluateStringFunction

Modules