Skip to content

Instantly share code, notes, and snippets.

@lorenzo
Created July 13, 2016 16:54
Show Gist options
  • Save lorenzo/e9b5fd017729f3b8321cc21f85c2be85 to your computer and use it in GitHub Desktop.
Save lorenzo/e9b5fd017729f3b8321cc21f85c2be85 to your computer and use it in GitHub Desktop.
actions : List Step
actions =
[ visit "https://google.com"
, title <| Expect.equal "this will fail!"
, elementCount "input" <| Expect.atLeast 1
, setValue "input[name='q']" "Elm lang"
, elementText "#rso > div:nth-child(1) > div:nth-child(1) > div > h3 > a" <| Expect.equal "Elm is the best"
, click "#rso > div:nth-child(1) > div:nth-child(1) > div > h3 > a"
, pause 2000
, title <| Expect.equal "home"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment