I have several buttons with two classes:
<button _ngcontent-c39="" class="btn btn-block"></button>
<button _ngcontent-c39="" class="btn btn-block btn-primary"></button>
I need to click at all buttons with class "btn btn-block" and don't want to click at the button with the class "btn btn-block btn-primary". I already tried:
element.all(by.css('.btn.btn-block')).click();
but Protractor click at these two button. I already tried using className locator, but protractor doesn't find the element.
element.all(by.className('.btn.btn-block)).click();