The recently released Guidelines advise against using the by.xpath()
locators. I am making an effort to adhere to this suggestion, but I'm having difficulty locating a parent element.
We are currently utilizing the ..
XPath expression to access the parent element of a particular element:
this.dashboard = element(by.linkText("Dashboard")).element(by.xpath(".."));
Does anyone know how to locate the parent element using alternative built-in Protractor/WebDriverJS locators?