javascript - PROTRACTOR reload() -


i new automation , protractor, able automate login page there menu need access go different page i'm stuck.

there href="#/domains"data-ng-click="reload();" tried using xpath , css selector no luck. don't know how automate menu make go pages need.

you try -

element(by.css('href*=#/domains')).click();  //css selector *= contains element(by.css('href^=#/domains')).click(); // css selector ^= start element(by.css('href$=ains')).click();     // css selector $= ends  element(by.css('[data-ng-click="reload()"]')).click(); // not ideal way 

if nothing of above works have go nth-child little more of html code!


Comments