From d79e6756f3b24b22732236aecafabcaf70726181 Mon Sep 17 00:00:00 2001 From: mparvu Date: Wed, 3 Feb 2021 14:02:34 +0200 Subject: [PATCH] Small fix for `Select From Table Header Popup Menu` --- pom.xml | 4 ++-- .../java/org/robotframework/swing/table/TableOperator.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 4f5b1e58..5deda998 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ org.robotframework swinglibrary - 2.1.0 + 2.2.0 jar swinglibrary A Robot Framework test library for Swing UI testing @@ -138,7 +138,7 @@ org.robotframework robotframework-maven-plugin - 1.7.1 + 1.7.2 diff --git a/src/main/java/org/robotframework/swing/table/TableOperator.java b/src/main/java/org/robotframework/swing/table/TableOperator.java index 4f8e607e..12727c33 100644 --- a/src/main/java/org/robotframework/swing/table/TableOperator.java +++ b/src/main/java/org/robotframework/swing/table/TableOperator.java @@ -176,7 +176,7 @@ public void callPopupMenuItemOnTableHeader(Point point, String menuPath) { JPopupMenuOperator.callPopup( headerOperator.getSource(), (int) point.getX(), - (int) point.getY(), + (int) point.getY() / 2, InputEvent.BUTTON3_MASK)); JMenuItemOperator item = menuOperator.showMenuItem(menuPath, new EqualsStringComparator());