Skip to content

Instantly share code, notes, and snippets.

@christian-bromann
Last active August 29, 2015 14:02
Show Gist options
  • Save christian-bromann/b705b5ae8c9c122df375 to your computer and use it in GitHub Desktop.
Save christian-bromann/b705b5ae8c9c122df375 to your computer and use it in GitHub Desktop.
getAttribute
describe('getAttribute', function() {
it('should test data attribute', function(done) {
client.getAttribute('#elem', 'data-type', function(err, attr) {
assert(err === null);
assert(attr === 'example'); // true
}).call(done);
});
});
<div data-type="example" id="elem">
Lorem ipsum dolor ammet
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment