Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created August 30, 2016 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/aa60e506e335d2d69730d61fadbdb8ba to your computer and use it in GitHub Desktop.
Save matthieu-D/aa60e506e335d2d69730d61fadbdb8ba to your computer and use it in GitHub Desktop.
it('should find the button', () => {
let btn = element(by.css('.trigger-timeout-button'));
btn.click();
let elem = element(by.css('.dynamic-text'));
browser.wait(function() {
return browser.isElementPresent(by.css('.dynamic-text'));
}, 5000);
expect(elem.isPresent()).toBeTruthy();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment