Skip to content

Instantly share code, notes, and snippets.

@muditlambda
Created March 12, 2020 14:25
/* The locator that returns the expected element for the specified name */
// making use of our locator in our test script //
var developer = browser.findElement(by.name('developer'));
// making use of our locator in our test script //
var tester = browser.findElement(by.name('tester'));
expect(developer.getText()).toBe('John');
expect(tester.getText()).toBe('Mark');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment