@@ -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
@@ -174,6 +174,12 @@ getCssValue :: forall e. Element -> String -> Aff (selenium :: SELENIUM | e) Str
174
174
isDisplayed :: forall e. Element -> Aff (selenium :: SELENIUM | e) Boolean
175
175
```
176
176
177
+ #### ` isEnabled `
178
+
179
+ ``` purescript
180
+ isEnabled :: forall e. Element -> Aff (selenium :: SELENIUM | e) Boolean
181
+ ```
182
+
177
183
#### ` getInnerHtml `
178
184
179
185
``` purescript
@@ -186,9 +192,9 @@ getInnerHtml :: forall e. Element -> Aff (selenium :: SELENIUM | e) String
186
192
clearEl :: forall e. Element -> Aff (selenium :: SELENIUM | e) Unit
187
193
```
188
194
189
- Clear ` value ` of element, if it has no value will do nothing.
190
- If ` value ` is weakly referenced by ` virtual-dom ` (` purescript-halogen ` )
191
- will not work -- to clear such inputs one should use direct signal from
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
192
198
` Selenium.ActionSequence `
193
199
194
200
0 commit comments