Repository: flex-asjs
Updated Branches:
  refs/heads/develop d2d4789fb -> 8616f4ebc


more info from test


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/8616f4eb
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/8616f4eb
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/8616f4eb

Branch: refs/heads/develop
Commit: 8616f4ebc29221493051042e2c894161bf851f26
Parents: d2d4789
Author: Alex Harui <[email protected]>
Authored: Mon Sep 18 09:52:41 2017 -0700
Committer: Alex Harui <[email protected]>
Committed: Mon Sep 18 09:52:48 2017 -0700

----------------------------------------------------------------------
 mustella/java/src/marmotinni/DispatchMouseClickEvent.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/8616f4eb/mustella/java/src/marmotinni/DispatchMouseClickEvent.java
----------------------------------------------------------------------
diff --git a/mustella/java/src/marmotinni/DispatchMouseClickEvent.java 
b/mustella/java/src/marmotinni/DispatchMouseClickEvent.java
index 66c65bc..d487765 100644
--- a/mustella/java/src/marmotinni/DispatchMouseClickEvent.java
+++ b/mustella/java/src/marmotinni/DispatchMouseClickEvent.java
@@ -64,7 +64,7 @@ public class DispatchMouseClickEvent extends TestStep {
                        x = stageX;
                        y = stageY;
                }
-               
+               TestOutput.logResult("DispatchMouseClickEvent: x = " + x + ", y 
= " + y);
                // find top-most element
                StringBuilder script = new StringBuilder();
                script.append("var all = document.all;");
@@ -78,6 +78,10 @@ public class DispatchMouseClickEvent extends TestStep {
                if (TestStep.showScripts)
                        System.out.println(script);
                WebElement mouseTarget = 
(WebElement)((JavascriptExecutor)webDriver).executeScript(script.toString());
+        if (mouseTarget == null)
+            TestOutput.logResult("DispatchMouseClickEvent: mouseTarget = 
null");
+        else
+            TestOutput.logResult("DispatchMouseClickEvent: mouseTarget = " + 
mouseTarget.getTagName() + " " + mouseTarget.getText());
         try
         {
                        mouseTarget.click();

Reply via email to