angular protractor no element found using locator


I am using protractor locator below and

element(by.css('.config1100 .btn btn-default btn-lg')).click();

getting following error

NoSuchElementError: No element found using locator: By.cssSelector(".config1100 .btn btn-default btn-lg")

html is templateURL of anuglar-ui view

<div class="row">
    <div class="config1100" ng-include="'../data/config1100.html'"></div>
        <button type="button" class="btn btn-default btn-lg" ng-click="save()">Save</button>
Problem courtesy of: irom


Might be simpler to use by.buttonText


If you have more than one button with that text, grab the collection with element.all and figure out which one you need.

Solution courtesy of: MBielski


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.