I'm trying to click on multiple selections in a multi select box. But I'm unable to perform the same.
What i have tried so far:
let option1 = input.all(by.cssContainingText('option','One'));
let option2 = input.all(by.cssContainingText('option','Two'));
option1.click();
browser.actions().mouseMove(option2).keyDown(protractor.Key.CONTROL).click().perform();
This solution is based on this answer but it throws an error: unknown error: at least an element or offset should be set.
Any help would be appreciated!
Aucun commentaire:
Enregistrer un commentaire