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)
#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))
#init Source
init :: forall r m. MonadAff m => MonadRec m => String -> CapabilitiesRequest -> m (Either Error (Interpreter r))
#handleLunapark Source
handleLunapark :: forall r. HandleLunaparkInput -> LunaparkF ~> (BaseRun r)
Re-exports from Lunapark.ActionF
#WithAction Source
type WithAction r = Run (lunaparkActions :: LUNAPARK_ACTIONS | r) Unit
#LUNAPARK_ACTIONS Source
type LUNAPARK_ACTIONS = FProxy ActionF
#ActionF Source
data ActionF a
Constructors
Click Button a
ButtonDown Button a
ButtonUp Button a
DoubleClick Button a
SendKeys String a
MoveTo PointerMove a
InTouch (TouchF a)
Pause Milliseconds a
Instances
#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
#ErrorType Source
data ErrorType
Constructors
ElementClickIntercepted
ElementNotSelectable
ElementNotInteractable
InsecureCertificate
InvalidArgument
InvalidCookieDomain
InvalidCoordinates
InvalidElementState
InvalidSelector
InvalidSessionId
JavaScriptError
MoveTargetOutOfBounds
NoSuchAlert
NoSuchCookie
NoSuchElement
NoSuchFrame
NoSuchWindow
ScriptTimeout
SessionNotCreated
StaleElementReference
Timeout
UnableToSetCookie
UnableToCaptureScreen
UnexpectedAlertOpen
UnknownCommand
UnknownError
UnknownMethod
UnsupportedOperation
#unknownError Source
unknownError :: String -> Error
#toStringCode Source
toStringCode :: ErrorType -> String
Re-exports from Lunapark.LunaparkF
#WithLunapark Source
type WithLunapark r a = Run (lunapark :: LUNAPARK | r) a
#LunaparkF Source
data LunaparkF a
Constructors
Quit a
Status (ServerStatus -> a)
GetTimeouts (Timeouts -> a)
SetTimeouts Timeouts a
GoTo String a
GetUrl (String -> a)
Forward a
Back a
Refresh a
GetTitle (String -> a)
GetWindowHandle (WindowHandle -> a)
GetWindowHandles (Array WindowHandle -> a)
CloseWindow a
SwitchToWindow WindowHandle a
SwitchToFrame FrameId a
SwitchToParentFrame a
GetWindowRectangle (Rectangle -> a)
SetWindowRectangle Rectangle a
MaximizeWindow a
MinimizeWindow a
FullscreenWindow a
ExecuteScript Script (Json -> a)
ExecuteScriptAsync Script (Json -> a)
GetAllCookies (Array Cookie -> a)
GetCookie String (Cookie -> a)
DeleteCookie String a
DeleteAllCookies a
AddCookie Cookie a
DismissAlert a
AcceptAlert a
GetAlertText (String -> a)
SendAlertText String a
Screenshot String a
GetActiveElement (Element -> a)
FindElement Locator (Element -> a)
FindElements Locator (Array Element -> a)
OnElement Element (ElementF a)
PerformActions ActionRequest a
ReleaseActions a
Instances
#ElementF Source
data ElementF a
Constructors
ChildElement Locator (Element -> a)
ChildElements Locator (Array Element -> a)
IsSelected (Boolean -> a)
GetAttribute String (String -> a)
GetProperty String (Json -> a)
GetCss String (String -> a)
GetText (String -> a)
GetTagName (String -> a)
GetRectangle (Rectangle -> a)
IsEnabled (Boolean -> a)
ClickEl a
ClearEl a
SendKeysEl String a
ScreenshotEl String a
IsDisplayed (Boolean -> a)
Submit a
Instances
#switchToWindow Source
switchToWindow :: forall r. WindowHandle -> WithLunapark r Unit
#switchToParentFrame Source
switchToParentFrame :: forall r. WithLunapark r Unit
#switchToFrame Source
switchToFrame :: forall r. FrameId -> WithLunapark r Unit
#submitElement Source
submitElement :: forall r. Element -> WithLunapark r Unit
#status Source
status :: forall r. WithLunapark r ServerStatus
#setWindowRectangle Source
setWindowRectangle :: forall r. Rectangle -> WithLunapark r Unit
#setTimeouts Source
setTimeouts :: forall r. Timeouts -> WithLunapark r Unit
#sendKeysElement Source
sendKeysElement :: forall r. Element -> String -> WithLunapark r Unit
#sendAlertText Source
sendAlertText :: forall r. String -> WithLunapark r Unit
#screenshot Source
screenshot :: forall r. String -> WithLunapark r Unit
#releaseActions Source
releaseActions :: forall r. WithLunapark r Unit
#refresh Source
refresh :: forall r. WithLunapark r Unit
#quit Source
quit :: forall r. WithLunapark r Unit
#performActions Source
performActions :: forall r. ActionRequest -> WithLunapark r Unit
#minimizeWindow Source
minimizeWindow :: forall r. WithLunapark r Unit
#maximizeWindow Source
maximizeWindow :: forall r. WithLunapark r Unit
#liftLunapark Source
liftLunapark :: forall r a. LunaparkF a -> WithLunapark r a
#isSelected Source
isSelected :: forall r. Element -> WithLunapark r Boolean
#isDisplayed Source
isDisplayed :: forall r. Element -> WithLunapark r Boolean
#getWindowRectangle Source
getWindowRectangle :: forall r. WithLunapark r Rectangle
#getWindowHandles Source
getWindowHandles :: forall r. WithLunapark r (Array WindowHandle)
#getWindowHandle Source
getWindowHandle :: forall r. WithLunapark r WindowHandle
#getUrl Source
getUrl :: forall r. WithLunapark r String
#getTitle Source
getTitle :: forall r. WithLunapark r String
#getTimeouts Source
getTimeouts :: forall r. WithLunapark r Timeouts
#getTagName Source
getTagName :: forall r. Element -> WithLunapark r String
#getRectangle Source
getRectangle :: forall r. Element -> WithLunapark r Rectangle
#getProperty Source
getProperty :: forall r. Element -> String -> WithLunapark r Json
#getAttribute Source
getAttribute :: forall r. Element -> String -> WithLunapark r String
#getAllCookies Source
getAllCookies :: forall r. WithLunapark r (Array Cookie)
#getAlertText Source
getAlertText :: forall r. WithLunapark r String
#fullscreenWindow Source
fullscreenWindow :: forall r. WithLunapark r Unit
#forward Source
forward :: forall r. WithLunapark r Unit
#findElements Source
findElements :: forall r. Locator -> WithLunapark r (Array Element)
#findElement Source
findElement :: forall r. Locator -> WithLunapark r Element
#executeScriptAsync Source
executeScriptAsync :: forall r. Script -> WithLunapark r Json
#executeScript Source
executeScript :: forall r. Script -> WithLunapark r Json
#elementScreenshot Source
elementScreenshot :: forall r. Element -> String -> WithLunapark r Unit
#dismissAlert Source
dismissAlert :: forall r. WithLunapark r Unit
#deleteCookie Source
deleteCookie :: forall r. String -> WithLunapark r Unit
#deleteAllCookies Source
deleteAllCookies :: forall r. WithLunapark r Unit
#closeWindow Source
closeWindow :: forall r. WithLunapark r Unit
#clickElement Source
clickElement :: forall r. Element -> WithLunapark r Unit
#clearElement Source
clearElement :: forall r. Element -> WithLunapark r Unit
#childElements Source
childElements :: forall r. Element -> Locator -> WithLunapark r (Array Element)
#childElement Source
childElement :: forall r. Element -> Locator -> WithLunapark r Element
#back Source
back :: forall r. WithLunapark r Unit
#acceptAlert Source
acceptAlert :: forall r. WithLunapark r Unit