Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;Style 1 - dependency defined in surrounding namespace
- (defn to-bool [s]
- (wd/to s)
- (wd/implicit-wait 3000)
- (= (wd/current-url) s))
- ;;Style 2 - dependencies passed in makes mocking easier in testing
- (defn to-bool [s to implicit-wait current-url]
- (to s)
- (implicit-wait 3000)
- (= (current-url) s))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement