Skip to content

Commit

Permalink
HtmlUnit: do not disable mouse notifications when js is disabled, css…
Browse files Browse the repository at this point in the history
… is also related to this information (only partly implemented in HtmlUnit at the moment)

Signed-off-by: Alexei Barantsev <barancev@gmail.com>
  • Loading branch information
rbri authored and barancev committed May 5, 2015
1 parent f16fbae commit 8b2cae0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions java/client/src/org/openqa/selenium/htmlunit/HtmlUnitMouse.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,13 @@ public void click(Coordinates elementCoordinates) {
moveOutIfNeeded(element);

try {
if (parent.isJavascriptEnabled()) {
if (!(element instanceof HtmlInput)) {
element.focus();
}

element.mouseOver();
element.mouseMove();
if (!(element instanceof HtmlInput)) {
element.focus();
}

element.mouseOver();
element.mouseMove();

element.click(keyboard.isShiftPressed(),
keyboard.isCtrlPressed(), keyboard.isAltPressed());
updateActiveElement(element);
Expand Down

0 comments on commit 8b2cae0

Please sign in to comment.