Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
path -> selector
Browse files Browse the repository at this point in the history
  • Loading branch information
cryogenian committed May 15, 2018
1 parent e8884bd commit 4796f2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Lunapark/Types.purs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import Data.Traversable as F
import Data.Tuple (Tuple(..))
import Data.Variant as V
import Data.XPath.AST as XA
import Data.XPath.Printer (printPath)
import Data.XPath.Printer (printSelector)
import Foreign.Object as FO
import Node.Encoding as NE
import Node.Path (FilePath)
Expand Down Expand Up @@ -158,7 +158,7 @@ encodeRectangle r = J.encodeJson $ FO.fromFoldable

data Locator
= ByCss CSS.Selector
| ByXPath XA.Path
| ByXPath XA.Selector
| ByTagName String
| ByLinkText String
| ByPartialLinkText String
Expand All @@ -177,7 +177,7 @@ encodeLocator l = J.encodeJson $ FO.fromFoldable case l of
]
ByXPath sel →
[ Tuple "using" "xpath"
, Tuple "value" $ printPath sel
, Tuple "value" $ printSelector sel
]
ByLinkText sel →
[ Tuple "using" "link text"
Expand Down

0 comments on commit 4796f2d

Please sign in to comment.