Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit dfd2284

Browse files
vikramsoni2jeffbcross
authored andcommitted
Updated e2e spec to remove warning
on element(by.css(.phones li a)).click(); selenium will throw a warning message that more then one element found. element.all(by.css('.phones li a')).first().click(); fixes the issue
1 parent 3b158aa commit dfd2284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/tutorial/step_06.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ __`test/e2e/scenarios.js`__:
7373
it('should render phone specific links', function() {
7474
var query = element(by.model('query'));
7575
query.sendKeys('nexus');
76-
element(by.css('.phones li a')).click();
76+
element.all(by.css('.phones li a')).first().click();
7777
browser.getLocationAbsUrl().then(function(url) {
7878
expect(url.split('#')[1]).toBe('/phones/nexus-s');
7979
});

0 commit comments

Comments
 (0)