I am facing hard time to identify below elements uniquely as am new to protractor and JavaScript.
I have to drag and drop thousands of the elements uniquely which have same hierarchy but only different values in the tags as below.
<div class="ng-scope ng-binding angular-ui-tree-handle" ui-tree-handle=""> ABC </div>
<div class="ng-scope ng-binding angular-ui-tree-handle" ui-tree-handle=""> DEF </div>
<div class="ng-scope ng-binding angular-ui-tree-handle" ui-tree-handle=""> EFG </div>
I have tried something like:
element.all(by.css('.ng-scope ng-binding angular-ui-tree-handle')).get(0).click();
but don't really want to get into it as mentioned earlier, I have thousands of elements.
Your help is much appreciated.