[Haskell-cafe] Webdriver: Couldn't match type `Element' with `WD Element'

Brandon Allbery allbery.b at gmail.com
Tue Jul 8 23:02:22 UTC 2014

On Tue, Jul 8, 2014 at 6:52 PM, Cody Goodman <codygman.consulting at gmail.com>

>       textElems <- filterM (liftM $ ((==) "text" . (`attr` "type"))) inputs

Are you sure this shouldn't be:

    let textElems = filter ((==) "text" . `attr` "type") inputs

? The type in the error suggests this is more appropriate.

brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140708/222cd03d/attachment.html>

More information about the Haskell-Cafe mailing list