javascript - How to click on calendar icon using class in angular protractor -
html code:
<button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button>
in protractor angular automation, trying click on calendar icon using class not able click. using ng-click
can click on icon have using class. please me, new angular protractor.
the problem classes button has "layout-oriented" , it's not idea rely on them. but, if insist:
element(by.css("button.btn.btn-default.btn-sm.pull-right"));
probably, reliable , readable locator in case (given given) ng-click
:
element(by.css("button[ng-click*=move]"));
Comments
Post a Comment