Module
Lunapark.Endpoint 
- Package
- purescript-lunapark
- Repository
- slamdata/purescript-lunapark
Building whole endpoint leads to having tons of noizy things like ElementFindElement and TouchClick
Making this a Variant is definitely overkill
So, to have something like /session/:sessId/element/:elId/doubleclick we have
InSession sessId : InElement elId : DoubleClick : Nil
This is not as typesafe as it could be, but at least it saves from typos.
#EndpointPart Source
data EndpointPartConstructors
- Session
- InSession SessionId
- Status
- Timeouts
- Url
- Back
- Forward
- Refresh
- Title
- Window
- Handles
- Frame
- Parent
- Rect
- Maximize
- Minimize
- Fullscreen
- Element
- Elements
- InElement Element
- Active
- Selected
- Attribute String
- Property String
- CssValue String
- Text
- Name
- Enabled
- Click
- Clear
- Value
- Source
- Execute
- Sync
- Async
- Cookies
- Cookie String
- Actions
- Alert
- Dismiss
- Accept
- Screenshot
- Displayed
- AsyncScript
- Sessions
- WindowHandle
- WindowHandles
- ExecuteAsync
- Size
- Position
- Submit
- Keys
- Location
- AlertText
- AcceptAlert
- DismissAlert
- MoveTo
- ButtonDown
- ButtonUp
- DoubleClick
- Touch
- Down
- Up
- Move
- Scroll
- LongClick
- Flick
#Endpoint Source
type Endpoint = List EndpointPart#printPart Source
printPart :: EndpointPart -> String