I am trying to select all the text present in a webpage. I am using sendKeys command but it is not working.
I have also tried with other keys constants and it works, but not when I use 'command+A'.
Here is the code used:
properties.homePage.editableText.click().sendKeys(protractor.Key.chord(protractor.Key.COMMAND,'A'));
What am I doing wrong?
The point is that if I put this code below, it writes an 'A' in the text one space left to end of the sentence because 'ARROW_LEFT' is working:
properties.homePage.editableText.click().sendKeys(protractor.Key.chord(protractor.Key.ARROW_LEFT,'A'));