Im new to protractor e2e testing. Writing jasmine test cases using protractor. I have two buttons in a html file. I want to select the specific button(button in begin.html file)
These did not work
element(by.id('gotest')).click();
by.linkUiSref('about-you');
performing some event on the button should navigate to next page(about-you)
Please help me
Text.html
<div class="button">
<a ui-sref="begin">
<button class="green">Text</button>
</a>
</div>
<ng-include src="'../begin.html'" class="hidden"></ng-include>
begin.html
<div class="button">
<button class="green" id="gotest" ui-sref="about-you">Start</button>
</div>