Module

Playwright

Package
purescript-playwright
Repository
rowtype-yoga/purescript-playwright

#Browser Source

data Browser

#Page Source

data Page

#Locator Source

data Locator

#LaunchOptions Source

type LaunchOptions = { args :: Array String, executablePath :: Nullable String }

#PageOptions Source

type PageOptions = { viewport :: { height :: Int, width :: Int } }

#RoleOptions Source

type RoleOptions = { exact :: Boolean, name :: String }

#ScreenshotOptions Source

type ScreenshotOptions = { fullPage :: Boolean, path :: String }

#ElementOperation Source

data ElementOperation

Operations run synchronously, in order, in one locator evaluation. Native setters are resolved from the named browser-global constructor's prototype, bypassing instance overrides installed by UI frameworks.

Constructors

#waitForGlobalFunction Source

#invokeGlobal Source

invokeGlobal :: Page -> String -> Array (Array Foreign) -> Effect (Promise Unit)

Apply a named window function, then each returned function, to successive argument lists. An empty list of arguments invokes a zero-argument thunk. The final promise is awaited; remote exceptions reject the operation.