selenium - How can I test context menu functionality in a web app? -


I am playing with a grails app that has a context menu (right-click) Is done by the homogene.

Though the rectangles actually work, I have to do automated testing, and how can I not do this work.

  • I have tried Selenium 2.05 A (i.e. WebDriver), but there is no right click method.
  • I have seen that HtmlUnit has a rightclick method but I do not know any difference between the click and then the first in the DOM.
  • There is currently no correct click method in WebDriver, an increase request for it opened -

    Right now you can use the keyboard shortcut Shift + F10 right click on the element:

      WebElement element = driver.findElement (....) ; Element.sendKeys (key keyboard (key. SHIFT, keyf.10));  

Comments