package tests.webelements; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import pages.webelements.CheckboxesAndRadioButtonsPage; public class CheckboxesAndRadioButtonsTests { public static void main(String[] args) { // Specify path to WebDriver: System.setProperty("webdriver.gecko.driver", "/snap/bin/geckodriver"); // Launch browser and navigate to test page: WebDriver driver = new FirefoxDriver(); driver.manage().window().maximize(); driver.get("https://ramoncaballero.dev/sdet/selenium-webdriver/playgrounds/"); // Instantiate the page model: CheckboxesAndRadioButtonsPage page = new CheckboxesAndRadioButtonsPage(driver); // Perform actions on the page: page.clickOnAccordionItem(); page.selectRandomCheckboxes(3); page.selectRandomRadioButton(); // // This is commented out so you can actually see what happened in the web page: // driver.quit(); } }