Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
tests(protractor): advanced features for ElementArrayFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
elgalu authored and juliemr committed Oct 1, 2014
1 parent 9db5327 commit 02a7730
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/basic/elements_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,15 @@ describe('ElementArrayFinder', function() {
expect(multiElement.getText()).toEqual(['Outer: outer', 'Inner: inner']);
});

it('click action should act on all elements', function() {
var checkboxesElms = $$('#checkboxes input');
browser.get('index.html');

expect(checkboxesElms.isSelected()).toEqual([true, false, false]);
checkboxesElms.click();
expect(checkboxesElms.isSelected()).toEqual([false, true, true]);
});

it('action should act on all elements selected by filter', function() {
browser.get('index.html');

Expand Down

0 comments on commit 02a7730

Please sign in to comment.