I want to write something like:
return component.element(by.xpath('//div/div/a')); // I want: path to component + xpath
But I always have the result same with:
return element(by.xpath('//div/div/a')); // I always have: just xpath
Component is an element that was found with my own locator:
component = element(by.Name('Component_name'));
What I doing wrong?