From 2dd55842ce66118671405470821090dc395be63b Mon Sep 17 00:00:00 2001 From: Isaac Murchie Date: Tue, 24 Nov 2015 11:12:49 -0800 Subject: [PATCH] Fix test --- test/functional/api-demos/attribute-e2e-specs.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/functional/api-demos/attribute-e2e-specs.js b/test/functional/api-demos/attribute-e2e-specs.js index 26b8dec2..e852afcc 100644 --- a/test/functional/api-demos/attribute-e2e-specs.js +++ b/test/functional/api-demos/attribute-e2e-specs.js @@ -41,8 +41,7 @@ describe('apidemo - attributes', function () { await driver.back(); }); it('should be able to find content description attribute', async () => { - let el = await driver.findElOrEls('name', 'Animation'); - await driver.getAttribute('contentDescription').should.eventually.become("Animation"); + await driver.getAttribute('contentDescription', animationEl).should.eventually.become("Animation"); }); it('should be able to find displayed attribute', async () => { await driver.getAttribute('displayed', animationEl).should.eventually.become('true');