| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
WebDriverPreCore.HTTP.API
Synopsis
- newSession :: FullCapabilities -> Command SessionResponse
- status :: Command Status
- deleteSession :: Session -> Command ()
- getTimeouts :: Session -> Command Timeouts
- setTimeouts :: Session -> Timeouts -> Command ()
- navigateTo :: Session -> URL -> Command ()
- getCurrentUrl :: Session -> Command URL
- back :: Session -> Command ()
- forward :: Session -> Command ()
- refresh :: Session -> Command ()
- getTitle :: Session -> Command Text
- getWindowHandle :: Session -> Command Handle
- newWindow :: Session -> Command WindowHandleSpec
- closeWindow :: Session -> Command [Handle]
- switchToWindow :: Session -> Handle -> Command ()
- switchToFrame :: Session -> FrameReference -> Command ()
- getPageSource :: Session -> Command Text
- executeScript :: Session -> Script -> Command Value
- executeScriptAsync :: Session -> Script -> Command Value
- addCookie :: Session -> Cookie -> Command ()
- getAllCookies :: Session -> Command [Cookie]
- getNamedCookie :: Session -> Text -> Command Cookie
- deleteCookie :: Session -> Text -> Command ()
- deleteAllCookies :: Session -> Command ()
- performActions :: Session -> Actions -> Command ()
- releaseActions :: Session -> Command ()
- dismissAlert :: Session -> Command ()
- acceptAlert :: Session -> Command ()
- getAlertText :: Session -> Command Text
- sendAlertText :: Session -> Text -> Command ()
- takeScreenshot :: Session -> Command Text
- printPage :: Session -> Command Text
- getWindowHandles :: Session -> Command [Handle]
- getWindowRect :: Session -> Command WindowRect
- setWindowRect :: Session -> WindowRect -> Command WindowRect
- maximizeWindow :: Session -> Command WindowRect
- minimizeWindow :: Session -> Command WindowRect
- fullScreenWindow :: Session -> Command WindowRect
- switchToParentFrame :: Session -> Command ()
- getActiveElement :: Session -> Command ElementId
- findElement :: Session -> Selector -> Command ElementId
- findElements :: Session -> Selector -> Command [ElementId]
- findElementFromElement :: Session -> ElementId -> Selector -> Command ElementId
- findElementsFromElement :: Session -> ElementId -> Selector -> Command [ElementId]
- isElementSelected :: Session -> ElementId -> Command Bool
- getElementAttribute :: Session -> ElementId -> Text -> Command Text
- getElementProperty :: Session -> ElementId -> Text -> Command Value
- getElementCssValue :: Session -> ElementId -> Text -> Command Text
- getElementShadowRoot :: Session -> ElementId -> Command ShadowRootElementId
- getElementText :: Session -> ElementId -> Command Text
- getElementTagName :: Session -> ElementId -> Command Text
- getElementRect :: Session -> ElementId -> Command WindowRect
- isElementEnabled :: Session -> ElementId -> Command Bool
- getElementComputedRole :: Session -> ElementId -> Command Text
- getElementComputedLabel :: Session -> ElementId -> Command Text
- elementClick :: Session -> ElementId -> Command ()
- elementClear :: Session -> ElementId -> Command ()
- elementSendKeys :: Session -> ElementId -> Text -> Command ()
- takeElementScreenshot :: Session -> ElementId -> Command Text
- findElementFromShadowRoot :: Session -> ShadowRootElementId -> Selector -> Command ElementId
- findElementsFromShadowRoot :: Session -> ShadowRootElementId -> Selector -> Command [ElementId]
Root Methods
newSession :: FullCapabilities -> Command SessionResponse Source #
Return a spec to create a new session given FullCapabilities object.
newSession' can be used if FullCapabilities doesn't meet your requirements.
POST /session New Session
Session Methods
deleteSession :: Session -> Command () Source #
switchToFrame :: Session -> FrameReference -> Command () Source #
Return a spec to switch to a different frame given a Session and FrameReference.
POST /session/{session id}/frame Switch To FramedeleteAllCookies :: Session -> Command () Source #
releaseActions :: Session -> Command () Source #
dismissAlert :: Session -> Command () Source #
acceptAlert :: Session -> Command () Source #
Window Methods
getWindowRect :: Session -> Command WindowRect Source #
setWindowRect :: Session -> WindowRect -> Command WindowRect Source #
Return a spec to set the window rect of the current window given a Session and WindowRect.
POST /session/{session id}/window/rect Set Window RectFrame Methods
switchToParentFrame :: Session -> Command () Source #
Element(s) Methods
Element Instance Methods
getElementRect :: Session -> ElementId -> Command WindowRect Source #