Running a simple end to test using protractor, load a page, click on a button and the navigate to the next page after clicking the button but i'm getting the following error No element found using locator: by.buttonText(Register as a Buyer) This is the HTML behind the button
<a href="/register/buyer" class="btn" data-ss1491391037="1">
Register as a Buyer</a>
And snippet from my protractor file
element(by.buttonText("Register as a Buyer")).click();
Not sure what I'm missing here or what I'm supposed to change, I'm brand new to Protractor. I was able to get something similar above to work using a different button, except that button had a value assigned to it in the HTML code whereas the above doesn't.
Thanks for any help
element(by.xpath("//a[contains(text(), 'Register as a Buyer')]")).click();- Kishan Patel