@Test public void ClickRadioButtons() throws InterruptedException { for (int i = 0; i < 2; i++) { String buttonName = (OptionsMenu.RADIO_BUTTON_TITLES[i]); JRadioButtonDriver rbDriver = radioButton(buttonName); rbDriver.click(); Thread.sleep(WAIT_TIME); // Tests to see if it equals 2 the first time, and 4 the second time. assertThat((i * 2 + 2), is(equalTo(Q.players))); } }
private void click4PButton() { String buttonName = (OptionsMenu.RADIO_BUTTON_TITLES[1]); JRadioButtonDriver rbDriver = radioButton(buttonName); rbDriver.click(); }