I'm programming an end-to-end test for my website, but I cannot select my element.
Asked
Active
Viewed 1,811 times
0
-
You can try `element(by.css('[ng-reflect-index="2"]'))`; – demouser123 Jun 14 '17 at 16:34
-
Ooooh yes ! it's working! thank you – Alexandre Ntf Jun 14 '17 at 16:51
-
I have added this as an answer. If your issue was resolved, please accept this as an answer :) #SOReadyToHelp – demouser123 Jun 14 '17 at 17:27
-
By voting? Sorry i m new – Alexandre Ntf Jun 14 '17 at 22:18
1 Answers
2
You can try this...
element(by.css('[ng-reflect-index="2"]'))
However ng-reflect-*
are used for debugging purposes (thanks, @alexce, for this piece of information). So you shouldn't really rely on them in your tests.

Anthony Mastrean
- 21,850
- 21
- 110
- 188

demouser123
- 4,108
- 9
- 50
- 82