/*global it:true */
"use strict";

var describeWd = require("../helpers/driverblock.js").describe
  , assert = require('assert');

describeWd('findElement', function(h) {
  return it('should find a single element on the app', function(done) {
    h.driver.elementByTagName('button', function(err, element) {
      assert.ok(element.value);
      done();
    });
  });
});

describeWd('findElements', function(h) {
  return it('findElements should find both elements on the app', function(done) {
    h.driver.elementsByTagName('button', function(err, elements) {
      assert.equal(elements.length, 2);
      assert.ok(elements[0].value);
      done();
    });
  });
});

@@ -95,22 +95,22 @@
 ibe%0A  , 
-assert
+should
  = requi
@@ -113,22 +113,22 @@
 equire('
-assert
+should
 ');%0A%0Ades
@@ -303,33 +303,36 @@
 nt) %7B%0A      
-assert.ok
+should.exist
 (element.val
@@ -427,21 +427,8 @@
 it('
-findElements 
 shou
@@ -556,69 +556,430 @@
     
-assert.equal(elements.length, 2);%0A      assert.ok(elements%5B0%5D
+elements.length.should.equal(2);%0A      should.exist(elements%5B0%5D.value);%0A      done();%0A    %7D);%0A  %7D);%0A%7D);%0A%0A//describeWd('findElementFromElement', function(h) %7B%0A  //it('should find an element within itself', function(done) %7B%0A    //h.driver.elementByTagName('button', function(err, element) %7B%0A      //should.exist(element.value);%0A      //element.elementByTagName('UIALabel', function(err, label) %7B%0A        //should.exist(label
 .val
@@ -981,32 +981,36 @@
 l.value);%0A      
+  //
 done();%0A    %7D);%0A
@@ -997,30 +997,49 @@
   //done();%0A    
+  //
 %7D);%0A  
+  //%7D);%0A  //%7D);%0A//
 %7D);%0A
-%7D);
 %0A

convert findElement.js to shoulds