Last active
March 23, 2017 01:01
-
-
Save ygamretuta/9a067f630df8c93a1769b6a8285bccc3 to your computer and use it in GitHub Desktop.
$ and $$ on Protractor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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