@@ -14,7 +14,7 @@ Go to url
14
14
wait :: forall e. Aff (selenium :: SELENIUM | e) Boolean -> Int -> Driver -> Aff (selenium :: SELENIUM | e) Unit
15
15
```
16
16
17
- Wait until first argument returns 'true'. If it returns false an error will be raised
17
+ Wait until first argument returns 'true'. If it returns false an error will be raised
18
18
19
19
#### ` quit `
20
20
@@ -60,10 +60,10 @@ byXPath :: forall e. String -> Aff (selenium :: SELENIUM | e) Locator
60
60
affLocator :: forall e. (Element -> Aff (selenium :: SELENIUM | e) Element) -> Aff (selenium :: SELENIUM | e) Locator
61
61
```
62
62
63
- Build locator from asynchronous function returning element.
63
+ Build locator from asynchronous function returning element.
64
64
I.e. this locator will find first visible element with ` .common-element ` class
65
- ``` purescript
66
- affLocator \el -> do
65
+ ``` purescript
66
+ affLocator \el -> do
67
67
commonElements <- byCss ".common-element" >>= findElements el
68
68
flagedElements <- traverse (\el -> Tuple el <$> isVisible el) commonElements
69
69
maybe err pure $ foldl foldFn Nothing flagedElements
@@ -96,7 +96,7 @@ Finds elements by locator from `document`
96
96
findChild :: forall e. Element -> Locator -> Aff (selenium :: SELENIUM | e) (Maybe Element)
97
97
```
98
98
99
- Same as ` findElement ` but starts searching from custom element
99
+ Same as ` findElement ` but starts searching from custom element
100
100
101
101
#### ` findChildren `
102
102
@@ -168,6 +168,12 @@ clickEl :: forall e. Element -> Aff (selenium :: SELENIUM | e) Unit
168
168
getCssValue :: forall e. Element -> String -> Aff (selenium :: SELENIUM | e) String
169
169
```
170
170
171
+ #### ` getAttribute `
172
+
173
+ ``` purescript
174
+ getAttribute :: forall e. Element -> String -> Aff (selenium :: SELENIUM | e) String
175
+ ```
176
+
171
177
#### ` isDisplayed `
172
178
173
179
``` purescript
@@ -192,9 +198,9 @@ getInnerHtml :: forall e. Element -> Aff (selenium :: SELENIUM | e) String
192
198
clearEl :: forall e. Element -> Aff (selenium :: SELENIUM | e) Unit
193
199
```
194
200
195
- Clear ` value ` of element, if it has no value will do nothing.
196
- If ` value ` is weakly referenced by ` virtual-dom ` (` purescript-halogen ` )
197
- will not work -- to clear such inputs one should use direct signal from
201
+ Clear ` value ` of element, if it has no value will do nothing.
202
+ If ` value ` is weakly referenced by ` virtual-dom ` (` purescript-halogen ` )
203
+ will not work -- to clear such inputs one should use direct signal from
198
204
` Selenium.ActionSequence `
199
205
200
206
0 commit comments