from seleniumbase import BaseCase


class MyTestClass(BaseCase):

    def test_checkboxes_and_radio_buttons(self):
        self.open("https://www.w3schools.com/tags/tryit.asp"
                  "?filename=tryhtml5_input_type_checkbox")
        self.switch_to_frame("iframeResult")
        checkbox = "input#vehicle2"
        self.assert_false(self.is_selected(checkbox))
        self.click(checkbox)
        self.assert_true(self.is_selected(checkbox))
        self.open("https://www.w3schools.com/tags/tryit.asp"
                  "?filename=tryhtml5_input_type_radio")
        self.switch_to_frame("iframeResult")
        option_button = "input#male"
        self.assert_false(self.is_selected(option_button))
        self.click(option_button)
        self.assert_true(self.is_selected(option_button))

Add a test for checkboxes and radio buttons
Add a test for checkboxes and radio buttons
