How to Extract Values from Element
var projectOne = element.all(by.css('a[ng-click="setCurrentGroup(tab)"]')).get(6).getText().then(function(text){console.log(text);})
var projectTwo = element.all(by.css('a[ng-click="setCurrentGroupproject(tab)"]')).get(6).getText().then(function(text){console.log(text);})
After executing the above code, I get two values:
5,
6
Issue: I need to compare the two values and assert true if they are the same, otherwise assert false
Here is my attempt:
expect(values).not.toBeDefined(values)
expect(values).toEqual(values);
expect(values).not.toBe(values)
Any assistance on this matter would be greatly appreciated