Skip to content

Instantly share code, notes, and snippets.

@muditlambda
Created March 12, 2020 14:15
/* The locator that returns the expected element for the specified class */
var even = browser.findElement(by.className(positive));
expect(even.getText()).toBe('5');
// making use of our locator in our test script //
expect(browser.findElement(by.className('even'))).toBe('-6');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment