Export to GitHub

fest - issue #318

Using JMenuItemFixture, unable to click on a item in a menu


Posted on Apr 2, 2012 by Happy Bear

What steps will reproduce the problem? 1. 2. 3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Hi Alex, I am trying to use this library to autmate Swing GUI testing. My application has a menu and I am trying to click in File -> Open menu using the following: JMenuItemFixture menu = window.menuItemWithPath("File", "Open"); menu.click();

However I am seeing this error message:

java.lang.NoSuchMethodError: org.fest.assertions.ObjectAssert.as(Ljava/lang/String;)Lorg/fest/assertions/ObjectAssert; at org.fest.swing.fixture.JMenuItemFinder.menuItemWithPath(JMenuItemFinder.java:49) at org.fest.swing.fixture.ContainerFixture.menuItemWithPath(ContainerFixture.java:267) at

Any help is appreciated. I am using the latest version of the library Fest-Swing 1.2.2

Status: New