尝试了几个选项但在打开上下文菜单后无法选择该选项。
.step('Performing Undo Operation', page.paragraph1.click(), function(){
browser.actions().click(protractor.Button.RIGHT).sendKeys(protractor.Key.ARROW_DOWN).sendKeys(protractor.Key.ENTER).perform().then(function() {
console.log('Undo Done');
})
// Option 2
//browser.actions().click(protractor.Button.RIGHT).sendKeys(protractor.Key.chord("u",protractor.Key.ENTER)).perform();
// Option 3
// browser.actions().click(protractor.Button.RIGHT).perform();
// browser.sleep(2000);
//browser.actions().sendKeys(protractor.Key.ARROW_DOWN).sendKeys(protractor.Key.ENTER).perform();
})