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 e trash options. Union options trash LaunchOptions => Record options -> Aff e Browser

#newPage Source

newPage :: forall e. Browser -> Aff e Page

#goto Source

goto :: forall e. URL -> Page -> Aff e Unit

#close Source

close :: forall e. Browser -> Aff e Unit

#content Source

content :: forall e. Page -> Aff e String

#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 e trash options. Union options trash ScreenshotOptions => Record options -> Page -> Aff e 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 e trash options. Union options trash PDFOptions => Record options -> Page -> Aff e Buffer

#onPageError Source

onPageError :: forall e. EffFn1 e Error Unit -> Page -> Eff e Unit

#onLoad Source

onLoad :: forall e. EffFn1 e Unit Unit -> Page -> Eff e Unit

#pageWaitForSelector Source

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

#focus Source

focus :: forall e. Selector -> Page -> Aff e Unit

#type_ Source

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

#click Source

click :: forall e. Selector -> Page -> Aff e Unit

#WaitUntilOption Source

#waitForNavigation Source

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

#getLocationRef Source

getLocationRef :: forall e. Page -> Aff e String

#unsafeEvaluateStringFunction Source

#runPromiseAffE1 Source

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

#runPromiseAffE2 Source

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

#runPromiseAffE3 Source

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

#runPromiseAffE4 Source

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

#_launch Source

_launch :: forall e options. Fn1 options (Eff e (Promise Browser))

#_newPage Source

_newPage :: forall e. Fn1 Browser (Eff e (Promise Page))

#_goto Source

_goto :: forall e. Fn2 URL Page (Eff e (Promise Unit))

#_close Source

_close :: forall e. Fn1 Browser (Eff e (Promise Unit))

#_content Source

_content :: forall e. Fn1 Page (Eff e (Promise String))

#_screenshot Source

_screenshot :: forall e options. Fn2 options Page (Eff e (Promise Buffer))

#_pdf Source

_pdf :: forall e options. Fn2 options Page (Eff e (Promise Buffer))

#_on Source

_on :: forall e a. EffFn3 e String (EffFn1 e a Unit) Page Unit

#_pageWaitForSelector Source

_pageWaitForSelector :: forall e options. Fn3 Selector options Page (Eff e (Promise ElementHandle))

#_focus Source

_focus :: forall e. Fn2 Selector Page (Eff e (Promise Unit))

#_type Source

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

#_click Source

_click :: forall e. Fn2 Selector Page (Eff e (Promise Unit))

#_waitForNavigation Source

_waitForNavigation :: forall e options. Fn2 options Page (Eff e (Promise Unit))

#_getLocationHref Source

#_unsafeEvaluateStringFunction Source

Modules
Toppokki