Skip to content

Instantly share code, notes, and snippets.

@dannyshain
Created June 18, 2021 19:57
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 dannyshain/21dfcb950fda71bd2d526363e96e57e8 to your computer and use it in GitHub Desktop.
Save dannyshain/21dfcb950fda71bd2d526363e96e57e8 to your computer and use it in GitHub Desktop.
describe('Protractor', function() {
it('should select an ingredient from the list', function() {
browser.waitForAngularEnabled(false);
browser.get('https://kitchen.applitools.com/ingredients/select');
element(by.id('spices-select-single')).click();
element(by.css("#spices-select-single [value='garlic']")).click();
expect(element(by.id('spices-select-single')).getAttribute('value')).toEqual('garlic');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment