'Select From Popup Menu with left click on component in SwingLibrary (Robotframework)

I'm trying to left click on an hyperlink inside of a java application, the left click opens up a small context popup menu. (Right clicking doesn't do anything). After trying some Robotframework keywords and so on , I've come to the : Select From Popup Menu

Which is described as: Selects an item from the components context popup menu. Does a right click on the component and selects the specified menu item from the popup menu. Which seems to be implemented as such:

@RobotKeyword("Selects an item from the components context popup menu.\n"
            + "Does a right click on the component and selects the specified menu item from the popup menu.\n\n"
            + "Example:\n"
            + "| Select From Popup Menu | _myComponent_ | _Actions|Do something_ |\n")
    @ArgumentNames({ "identifier", "menuPath" })
    public void selectFromPopupMenu(String identifier, String menuPath) {
        JPopupMenuOperator popup = operator(identifier).invokePopup();
        popup.pushMenuNoBlock(menuPath, new EqualsStringComparator());
    }

Is there any way to have like a wrapper or modify the implementation to perform a left click instead?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source