Apparently Protractor cannot find this element in a menu on my application, elements above are ok. My code is:
this.openMenu("toogleMenuButton")
let prodLink = element(by.id("menu12"));
if (prodLink.isPresent()) {
prodLink.click();
browser.sleep(500);
} else {
return false;
}
The HTML code is:
<a _ngcontent-c13=""
appaccordiontoggle=""
class="relative mat-ripple"
md-ripple=""
routerlinkactive="open"
style="margin-left: 47px"
ng-reflect-class-base="relative"
ng-reflect-router-link-active="open"
id="menu12">
<span _ngcontent-c13="">Produtos</span>
</a>
Could someone help me please?