According to the newly published Style Guide, using the by.xpath()
locators is considered a bad practice. I'm actually trying to follow the suggestion, but stuck on getting a parent element.
Currently we are using ..
XPath expression to get to the element's parent:
this.dashboard = element(by.linkText("Dashboard")).element(by.xpath(".."));
How can I locate the element's parent using other built into Protractor/WebDriverJS locators?