Is it possible to trigger a right-click event on a specific element using mouse simulation?
I have attempted the following code, but the context menu does not appear:
var testElem = $('#someElementId span');
return browser.actions().mouseMove(testElem).perform().then(function() {
return browser.actions().click(testElem, protractor.Button.RIGHT).perform();
});
However, I have found that the following code successfully highlights the correct element:
var testElem = $('#someElementId span');
return browser.actions().mouseMove(testElem).perform().then(function() {
return browser.actions().doubleClick(testElem, protractor.Button.RIGHT).perform();
});
No error messages are being displayed...