@Before public void setUp() throws Exception { Q = new Quoridor(); quorDriver = new JFrameDriver( new GesturePerformer(), new AWTEventQueueProber(), JFrameDriver.named(Quoridor.MAIN_WINDOW_TITLE), JFrameDriver.showingOnScreen()); menuDriver = new JFrameDriver( new GesturePerformer(), new AWTEventQueueProber(), JFrameDriver.named(OptionsMenu.OPTIONS_WINDOW_TITLE), JFrameDriver.showingOnScreen()); String buttonName = ("Button1"); JButtonDriver bDriver = qButton(buttonName); bDriver.click(); }
public AuctionSniperDriver(int timeoutMillis) { super( new GesturePerformer(), JFrameDriver.topLevelFrame(named(Main.MAIN_WINDOW_NAME), showingOnScreen()), new AWTEventQueueProber(timeoutMillis, 100)); }
@After public void shutDown() { menuDriver.dispose(); quorDriver.dispose(); }