Try the following:
WebElement baseElement = driver.findElement(By.id("foo"));
Actions clicker = new Actions(driver);
clicker.moveToElement(baseElement).moveByOffset(X, Y).click().perform();
Where X and Y are pixels along the horizontal and vertical plane
From: webd...@googlegroups.com [mailto:webd...@googlegroups.com] On Behalf Of brajasundar dash
Sent: 24 July 2012 14:16
To: webd...@googlegroups.com
Subject: [webdriver] How to click on a specific coordinates of a webelement
Hi,
Could any one let me know, how to click on particular coordinate of a web-element using selenium webdriver, if the web-element is a vertical separation line having more than one coordinates.
Thanks,
Brajasundar
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/IhniwTRTfn0J.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
clicker.moveToElement(baseElement).moveByOffset(X, Y).click().build().perform();
clicker.moveToElement(baseElement, X, Y).click().build().perform();
clicker.moveToElement(baseElement, X, Y).moveByOffset(X, Y).moveByOffset(X, Y).moveByOffset(X, Y).moveByOffset(X, Y).moveByOffset(X, Y).moveByOffset(X, Y).moveByOffset(X, Y).moveByOffset(X, Y).click().build().perform();