         assert.throws ->
           element.elementHasText(selector, undefined)
 
-      it 'suceeds if all conditions are met', ->
-        element.elementHasText(selector, text)
+      it 'returns the element if all conditions are met', ->
+        assert.truthy element.elementHasText(selector, text)
 
     describe 'Value', ->
       it 'fails if selector is undefined', ->

      assert.throws ->
        element.elementNotVisible(->)

    it 'succeeds if all conditions are met', ->
      element.elementNotVisible('.box')

  describe '#elementExists', ->
    driver =

      assert.throws ->
        element.elementExists(->)

    it 'returns the element if all conditions are met', ->
      assert.truthy element.elementExists('.box')

  describe '#elementDoesntExist', ->
    driver =
      getElement: -> null
    element = Element(driver)
