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

execute returns foreign #10

Merged
merged 1 commit into from
Aug 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
],
"license": "Apache 2.0",
"dependencies": {
"purescript-base": "~0.1.0",
"purescript-aff": "~0.11.3",
"purescript-dom": "~0.1.3"
"purescript-base": "^0.1.0",
"purescript-aff": "^0.11.3",
"purescript-dom": "^0.2.4"
},
"resolutions": {
"purescript-enums": "^0.7.0",
"purescript-strings": "^0.7.0"
}
}
Empty file modified example/main.js
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion src/Selenium.purs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import Control.Monad.Eff.Class (liftEff)
import Control.Monad.Aff (Aff())
import Selenium.Types
import Data.Unfoldable (Unfoldable, unfoldr)
import Data.Foreign (Foreign())
import Data.Maybe (Maybe(..))
import Data.Array (uncons)
import Data.Tuple (Tuple(..))
Expand Down Expand Up @@ -106,7 +107,7 @@ foreign import to :: forall e. String -> Driver -> Aff (selenium :: SELENIUM|e)
foreign import getCurrentUrl :: forall e. Driver -> Aff (selenium :: SELENIUM|e) String
foreign import getTitle :: forall e. Driver -> Aff (selenium :: SELENIUM|e) String
-- | Executes javascript script from `String` argument.
foreign import executeStr :: forall e. Driver -> String -> Aff (selenium :: SELENIUM|e) Unit
foreign import executeStr :: forall e. Driver -> String -> Aff (selenium :: SELENIUM|e) Foreign

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