ergerodr / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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/Obje
ctAssert;
    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 

Original issue reported on code.google.com by rajvi.1...@gmail.com on 2 Apr 2012 at 10:20