Пример #1
0
 @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();
 }
Пример #2
0
 public AuctionSniperDriver(int timeoutMillis) {
   super(
       new GesturePerformer(),
       JFrameDriver.topLevelFrame(named(Main.MAIN_WINDOW_NAME), showingOnScreen()),
       new AWTEventQueueProber(timeoutMillis, 100));
 }
Пример #3
0
 @After
 public void shutDown() {
   menuDriver.dispose();
   quorDriver.dispose();
 }