I am using Selenium WebDriver and Protractor to run e2e tests on my angular project. Let\'s say I have an element like:
Try to use xpath:
element(by.xpath('//div[@my-unique-id="abc123"]'))
or only by attribute
element(by.xpath('//div[@my-unique-id]'))