Skip to content
This repository was archived by the owner on Jan 17, 2020. It is now read-only.

Commit b63dd87

Browse files
committed
Merge pull request #10 from cryogenian/ready/execute-foreign
execute returns foreign
2 parents 457e346 + f42d0f4 commit b63dd87

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

bower.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616
],
1717
"license": "Apache 2.0",
1818
"dependencies": {
19-
"purescript-base": "~0.1.0",
20-
"purescript-aff": "~0.11.3",
21-
"purescript-dom": "~0.1.3"
19+
"purescript-base": "^0.1.0",
20+
"purescript-aff": "^0.11.3",
21+
"purescript-dom": "^0.2.4"
22+
},
23+
"resolutions": {
24+
"purescript-enums": "^0.7.0",
25+
"purescript-strings": "^0.7.0"
2226
}
2327
}

example/main.js

100644100755
File mode changed.

src/Selenium.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import Control.Monad.Eff.Class (liftEff)
3636
import Control.Monad.Aff (Aff())
3737
import Selenium.Types
3838
import Data.Unfoldable (Unfoldable, unfoldr)
39+
import Data.Foreign (Foreign())
3940
import Data.Maybe (Maybe(..))
4041
import Data.Array (uncons)
4142
import Data.Tuple (Tuple(..))
@@ -106,7 +107,7 @@ foreign import to :: forall e. String -> Driver -> Aff (selenium :: SELENIUM|e)
106107
foreign import getCurrentUrl :: forall e. Driver -> Aff (selenium :: SELENIUM|e) String
107108
foreign import getTitle :: forall e. Driver -> Aff (selenium :: SELENIUM|e) String
108109
-- | Executes javascript script from `String` argument.
109-
foreign import executeStr :: forall e. Driver -> String -> Aff (selenium :: SELENIUM|e) Unit
110+
foreign import executeStr :: forall e. Driver -> String -> Aff (selenium :: SELENIUM|e) Foreign
110111

111112
foreign import sendKeysEl :: forall e. String -> Element -> Aff (selenium :: SELENIUM|e) Unit
112113
foreign import clickEl :: forall e. Element -> Aff (selenium :: SELENIUM|e) Unit

0 commit comments

Comments
 (0)