Getting my head around protractor... How can I access a button element on an angularjs page that looks like this:
<button class="button primary">Save</button>
Using this in my test:
element(by.css('button primary')).click();
Getting an error:
NoSuchElementError: No element found using locator: By.cssSelector("button primary")
How can I fix this?
element(by.css('button.button.primary')).click();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With