use back() instead of finding Back element

This commit is contained in:
Jonathan Lipps
2014-02-25 19:31:33 -08:00
parent 9f0eebecfa
commit 3c483ea9f8

View File

@@ -14,12 +14,11 @@ describe('uicatalog - basic -', function () {
if (env.FAST_TESTS) {
beforeEach(function (done) {
driver
.elementByNameOrNull('Back')
.then(function (el) { if (el) return el.click(); })
.nodeify(done);
.back()
.nodeify(function () { done(); });
});
}
it('should confirm element is not visible', function (done) {
driver
.elementByTagName('tableCell').click()