1 Answer

0 votes
by

By using Key.ESC to body element in Protractor.

browser.actions().sendKeys(protractor.Key.ESC).perform();

browser.actions().sendKeys(protractor.Key.ESC).perform();

...