Can we set the values ​​and then use the chords of the projection keys to insert the values ​​into the text box?

I want to insert values ​​into a text file in e2e tests using a protractor.

In real life, the list will be copied from the extended extension sheet and then pasted into the text box.

I am currently manually copying the list before I started the protractor to test this command:

webElement.sendKeys(protractor.Key.chord(protractor.Key.CONTROL, "v"));

      

I can somehow set the list and then insert the values. I don't want to copy them every time I run my tests.

+3


source to share


1 answer


element(by.xyz(...)).sendKeys('some text content');

Is just sending keys kind of missing your use case?



+1


source







All Articles