Stability | experimental |
---|---|
Maintainer | Charles Strahan <charles.c.strahan@gmail.com> |
Safe Haskell | Safe-Inferred |
This module provides XPath constructors for common HTML queries.
The Text
argument is the locator (e.g. id, type, href, etc), and the Bool
argument indicates whether the generated XPath should match exactly or
inexactly.
XPath string literals can be properly quoted and escaped using
stringLiteral
.
Note: These functions are mostly meant for internal use; you probably want to use the queries in Happybara.Query.
Documentation
normalizeSpace :: Text -> TextSource
stringLiteral :: Text -> TextSource
linkOrButton :: Text -> Bool -> TextSource
fillableField :: Text -> Bool -> TextSource
radioButton :: Text -> Bool -> TextSource