Skip to content

Instantly share code, notes, and snippets.

@ygamretuta
Last active March 23, 2017 01:01
Show Gist options
  • Save ygamretuta/9a067f630df8c93a1769b6a8285bccc3 to your computer and use it in GitHub Desktop.
Save ygamretuta/9a067f630df8c93a1769b6a8285bccc3 to your computer and use it in GitHub Desktop.
$ and $$ on Protractor
// my.e2e-spec.ts
import { $, $$ } from 'protractor';
describe('MyDOM', ()=> {
it('should have a header with my text', () => {
expect($('h1.myHeader').getText()).toBe('My Header');
});
it('should have 3 list items', () => {
expect($$('#myList li').count()).toEqual(3));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment