If you are working in a document editor online or in an e-mail client and you are required to load a context menu, this will be useful. This can also be useful to load other bits of functionality or access specific pages.
To do this we will have to do the following:
WebDriver driver = new FirefoxDriver();ester.co.uk/demo1.html"); Actions builder = new Actions(driver); WebElement element = driver.findElement(By.tagName("body")); Action contextClick = builder.contextClick(element) .build(); contextClick.perform();
We have managed ...