我希望机器人点击“应用”按钮
每次测试失败并喷出
-1
java.land.IllegalArgumentException
testFXBase.java
public class testFXBase extends ApplicationTest
{
@Before
public void setUpClass() throws Exception
{
ApplicationTest.launch(Main.class);
}
@Override
public void start(Stage primaryStage ) throws Exception
{
primaryStage.show();
}
@Before
public void afterEachTest() throws Exception
{
FxToolkit.hideStage();
release(new KeyCode[] {});
release(new MouseButton[] {});
}
}
我有另一个成功运行的测试套件,然后以下套件失败了
testSuite2.java
public class testSuite2 extends testFXBase
{
final String APPLY_BUTTON = "#btn_testButton"
@Test
public void loadExcelDocument() throws Exception
{
clickOn(TEXT_TEXTAREA);
}
}