Module

Lunapark

Package
purescript-lunapark
Repository
slamdata/purescript-lunapark

Re-exports from Lunapark.API

#Lunapark Source

type Lunapark r = BaseRun (lunapark :: LUNAPARK, lunaparkActions :: LUNAPARK_ACTIONS | r)

#Interpreter Source

newtype Interpreter r

Constructors

#HandleLunaparkInput Source

type HandleLunaparkInput = { actionsEnabled :: Boolean, capabilities :: Array Capability, requestMapRef :: Ref (Map String Int), session :: SessionId, timeoutsRef :: Ref Timeouts, uri :: String }

#BaseRun Source

type BaseRun r = Run (aff :: AFF, effect :: EFFECT, except :: EXCEPT Error | r)

#w3cActions Source

w3cActions :: forall a r. List ActionSequence -> (List ActionSequence -> (Lunapark r) ~> (BaseRun (lunapark :: LUNAPARK | r))) -> ActionF (Lunapark r a) -> BaseRun (lunapark :: LUNAPARK | r) a

#runLunaparkActions Source

runLunaparkActions :: forall r. HandleLunaparkInput -> (Lunapark r) ~> (BaseRun (lunapark :: LUNAPARK | r))

#runLunapark Source

runLunapark :: forall r. HandleLunaparkInput -> (BaseRun (lunapark :: LUNAPARK | r)) ~> (BaseRun r)

#runInterpreter Source

runInterpreter :: forall r. Interpreter r -> (Lunapark r) ~> (BaseRun r)

#jsonWireActions Source

jsonWireActions :: forall r. HandleLunaparkInput -> ActionF ~> (BaseRun (lunapark :: LUNAPARK | r))

#interpretW3CActions Source

interpretW3CActions :: forall r. List ActionSequence -> (Lunapark r) ~> (BaseRun (lunapark :: LUNAPARK | r))

#interpret Source

#init Source

init :: forall r m. MonadAff m => MonadRec m => String -> CapabilitiesRequest -> m (Either Error (Interpreter r))

#handleLunapark Source

Re-exports from Lunapark.ActionF

#WithAction Source

type WithAction r = Run (lunaparkActions :: LUNAPARK_ACTIONS | r) Unit

#LUNAPARK_ACTIONS Source

#touchUp Source

touchUp :: forall r. WithAction r

#touchDown Source

touchDown :: forall r. WithAction r

#tap Source

tap :: forall r. WithAction r

#sendKeys Source

sendKeys :: forall r. String -> WithAction r

#scroll Source

scroll :: forall r. PointerMove -> WithAction r

#pause Source

pause :: forall r. Milliseconds -> WithAction r

#moveTo Source

moveTo :: forall r. PointerMove -> WithAction r

#longTap Source

longTap :: forall r. WithAction r

#liftAction Source

liftAction :: forall r. ActionF Unit -> WithAction r

#flick Source

flick :: forall r. PointerMove -> WithAction r

#doubleTap Source

doubleTap :: forall r. WithAction r

#doubleClick Source

doubleClick :: forall r. Button -> WithAction r

#click Source

click :: forall r. Button -> WithAction r

#buttonUp Source

buttonUp :: forall r. Button -> WithAction r

#buttonDown Source

buttonDown :: forall r. Button -> WithAction r

#_lunaparkActions Source

_lunaparkActions :: SProxy "lunaparkActions"

Re-exports from Lunapark.Error

#Error Source

type Error = { error :: ErrorType, message :: String, stacktrace :: String }

#unknownError Source

#fromJson Source

Re-exports from Lunapark.LunaparkF

#WithLunapark Source

type WithLunapark r a = Run (lunapark :: LUNAPARK | r) a

#switchToWindow Source

#switchToParentFrame Source

#switchToFrame Source

#submitElement Source

#setWindowRectangle Source

#setTimeouts Source

#sendKeysElement Source

#sendAlertText Source

#screenshot Source

#releaseActions Source

#refresh Source

refresh :: forall r. WithLunapark r Unit

#quit Source

quit :: forall r. WithLunapark r Unit

#performActions Source

#minimizeWindow Source

#maximizeWindow Source

#liftLunapark Source

liftLunapark :: forall r a. LunaparkF a -> WithLunapark r a

#isSelected Source

#isEnabled Source

#isDisplayed Source

#go Source

go :: forall r. String -> WithLunapark r Unit

#getWindowRectangle Source

#getWindowHandles Source

#getWindowHandle Source

#getUrl Source

getUrl :: forall r. WithLunapark r String

#getTitle Source

#getTimeouts Source

#getText Source

#getTagName Source

#getRectangle Source

#getProperty Source

#getCss Source

getCss :: forall r. Element -> String -> WithLunapark r String

#getCookie Source

#getAttribute Source

#getAllCookies Source

#getAlertText Source

#fullscreenWindow Source

#forward Source

forward :: forall r. WithLunapark r Unit

#findElements Source

#findElement Source

#executeScriptAsync Source

#executeScript Source

#elementScreenshot Source

#dismissAlert Source

#deleteCookie Source

#deleteAllCookies Source

#closeWindow Source

#clickElement Source

#clearElement Source

#childElements Source

#childElement Source

#back Source

back :: forall r. WithLunapark r Unit

#addCookie Source

addCookie :: forall r. Cookie -> WithLunapark r Unit

#acceptAlert Source

#_lunapark Source

_lunapark :: SProxy "lunapark"