Skip to content

Instantly share code, notes, and snippets.

View RHeijnen's full-sized avatar
💭
I may be slow to respond.

RHeijnen

💭
I may be slow to respond.
View GitHub Profile
@brennon
brennon / gist:12b449bc6a5c223ef230
Created November 20, 2014 04:33
Protractor conditional testing
describe('conditional testing', function() {
it('should be able to test conditionally', function() {
browser.get('http://www.angularjs.org');
element(by.css('.theresnowaythisclassexists')).then(
function elementExists() {
expect(false).toBe(true);
},
function elementDoesNotExist() {
expect(true).toBe(true);
}