Module

Toppokki

Package
purescript-toppokki
Repository
justinwoo/purescript-toppokki

#Puppeteer Source

data Puppeteer :: Type

#Browser Source

data Browser :: Type

#Page Source

data Page :: Type

#ElementHandle Source

#URL Source

newtype URL

Constructors

Instances

#Selector Source

newtype Selector

Constructors

Instances

#LaunchOptions Source

type LaunchOptions = (headless :: Boolean)

#launch Source

launch :: forall trash options. Union options trash LaunchOptions => Record options -> Aff Browser

#goto Source

goto :: URL -> Page -> Aff Unit

#ScreenshotOptions Source

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

#screenshot Source

screenshot :: forall trash options. Union options trash ScreenshotOptions => Record options -> Page -> Aff Buffer

#PDFMargin Source

data PDFMargin :: Type

#PDFMarginOptions Source

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

#makePDFMargin Source

makePDFMargin :: forall trash options. Union options trash PDFMarginOptions => Record options -> PDFMargin

#PDFOptions Source

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

#pdf Source

pdf :: forall trash options. Union options trash PDFOptions => Record options -> Page -> Aff Buffer

#pageWaitForSelector Source

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

#type_ Source

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

#WaitUntilOption Source

#waitForNavigation Source

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

#getLocationRef Source

#unsafeEvaluateStringFunction Source

#runPromiseAffE1 Source

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

#runPromiseAffE2 Source

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

#runPromiseAffE3 Source

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

#runPromiseAffE4 Source

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

#_launch Source

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

#_screenshot Source

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

#_pdf Source

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

#_pageWaitForSelector Source

#_type Source

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

#_waitForNavigation Source

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