pikajude · GitHub

Folders and files

NameName

Last commit message

Last commit date

Latest commit

History

5 Commits

This library makes it a little easier to deal with selenium-based integration tests. It's designed to augment the existing webdriver library.

Usage:

import Test.Hspec
import Test.WebDriver
import Test.WebDriver.Server
main :: IO ()
main = hspec $
    describe "My website" $
        it "is called joelt.io" $ do
            title <- withServer defaultSettings $
                runSession defaultSession defaultCaps $ do
                    openPage "https://joelt.io"
                    waitUntil 2000 getTitle
            title `shouldBe` "joelt.io"

Read the original on github.com ↗