// retrieve plot offset in canvas via JS (coordinates differ based on browser)
int x = chtestjs.pointXPos("frm:chart", 0, 0);
int y = chtestjs.pointYPos("frm:chart", 0, 0);
// onplotclick client side
new Actions(browser).moveToElement(chartCanvas, x, y).click().build().perform();
waitAjax(browser).until().element(clickInfo).text().contains(plotClick);
// onplotclick server side, since the element was already clicked only assertion is needed
waitAjax(browser).until().element(serverSideInfo).text().contains(serverSide);
// onplothover, first move away to clear the text from previous events
new Actions(browser).moveToElement(serverSideInfo).click().build().perform();
new Actions(browser).moveToElement(chartCanvas, x, y).build().perform();
waitAjax(browser).until().element(hoverInfo).text().contains(plotHover);
}