After developing a unique locator to identify an element utilizing the ng-click
method, I was able to retrieve a button reference from my Document Object Model (DOM).
this.button = element(by.ngClick('login()'));
Now, my goal is to extract the text displayed on the button using the aforementioned reference. If the button contains text like "Click to Login," how can I obtain this text from the button
reference?