I am new to FEST based GUI testing.
MyFrame is the root class for my application.
@Before public void onSetUp() { MyFrame frame = GuiActionRunner.execute(new GuiQuery<MyFrame>() { protected MyFrame executeInEDT() { return new MyFrame(); } }); frame2 = new FrameFixture(robot(), frame); frame2.show();
When I run the test case,
@Test public void testGui() { String rs = frame2.label("hl").text().toString(); assertTrue(rs.equals("First")); }
The above method does not print the actual line present in the label.
I think the FEST API is not waiting for the application to load.
Are there any methods for deferred search for a GUI element?
source share