Skip to content

Commit

Permalink
EranMes: Fixed clicking based on mouse coordinates.
Browse files Browse the repository at this point in the history
r12492
  • Loading branch information
eranmes committed Jun 15, 2011
1 parent 0c56141 commit 70efdb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,12 @@ public void testContextClick() {
}

@JavascriptEnabled
@Ignore({ANDROID, IE, FIREFOX, REMOTE, IPHONE, CHROME, SELENESE, OPERA})
@Ignore({ANDROID, IE, REMOTE, IPHONE, CHROME, SELENESE, OPERA})
public void testMoveAndClick() {
if (!supportsNativeEvents()) {
System.out.println("Skipping mouse test: needs native events");
return;
}
driver.get(pages.javascriptPage);

WebElement toClick = driver.findElement(By.id("clickField"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ FirefoxDriver.prototype.mouseClick = function(respond, parameters) {
var currentPosition = respond.session.getMousePosition();
var browserOffset = getBrowserSpecificOffset_(respond.session.getBrowser());

events.click(node, node, currentPosition.x + browserOffset.x,
events.click(node, currentPosition.x + browserOffset.x,
currentPosition.y + browserOffset.y, 1);

var dummyIndicator = {
Expand Down

0 comments on commit 70efdb8

Please sign in to comment.