Reputation: 585
While looking for any purely functional language bindings for Selenium2/WebDriver, I came across a repository for Haskell bindings for Selenium RC but not for the Selenium2/WebDriver.
I am interested in getting more comfortable with ideas of functional languages while sticking to Selenium2, if possible. I have been playing with Haskell for a month or so and understand that Haskell is a pure functional language so was wondering if they have any bindings for Selenium2. Otherwise, could you suggest any other functionally-oriented language bindings for Selenium2?
Upvotes: 12
Views: 971
Reputation: 101
The reply is a bit late, but I've released a Haskell client for WebDriver on Hackage that you may be interested in: http://hackage.haskell.org/package/webdriver
Upvotes: 10
Reputation: 27486
Though the project supports .NET, Java, Ruby, and Python out of the box, the Selenium WebDriver team has made it very easy to produce bindings for almost any language you care to. Most drivers now use a JSON-over-HTTP wire protocol, the commands of which are documented in the project wiki. As long as whatever language you are using has an HTTP client library and a JSON parsing library, you can create your own bindings with relative ease. A JVM-based language is far from necessary.
Upvotes: 5
Reputation: 8089
I think the reason why purely functional language bindings are missing is that Selenium
/WebDriver
is mostly used by QA/Testers and it would be difficult for them to program in a Haskell
or other functional language.
But you want to program with WebDriver
in functional style you can use some JVM based language such as Scala
or clojure
.
Upvotes: 2