Skip to content

Instantly share code, notes, and snippets.

@seancorfield
Created August 1, 2012 02:14
Show Gist options
  • Save seancorfield/3222856 to your computer and use it in GitHub Desktop.
Save seancorfield/3222856 to your computer and use it in GitHub Desktop.
(ns webdriver.expectations.arab-slideshow
(:require [clj-webdriver.taxi :refer :all]
[expectations.scenarios :refer [expect scenario]]))
(scenario
(set-driver! {:browser :firefox} "http://dv.arablounge.com/login/logout"))
(scenario
(to "http://dv.arablounge.com/login")
(expect "Arab Dating" (text ".footer p a"))
(input-text "#signin-username" "adamlangley")
(input-text "#signin-password" "langley")
(click "a[id='btnLogin']")
(to "http://dv.arablounge.com/search/slideshow")
(expect present? ".column-1st")
(expect "Are you interested?" (text ".column-1st h1"))
(expect "libbyfields" (text ".block-photo-full p a"))
(click "a[id='btnInterestNo']")
(expect "No More Profiles" (text ".wrap h1"))
(expect #"there are no more new profiles that match" (text ".wrap p"))
(quit))
(scenario
(quit))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment