import time
from selenium import webdriver
brow=webdriver.Chrome()
brow.get('file:///D:/autoUI_selenium/lesson04/cb.html')
bike=brow.find_element_by_css_selector('[value="bike"]')
car=brow.find_element_by_css_selector('[value="car"]')
plane=brow.find_element_by_css_selector('[value="car2"]')
# Judge whether it is selected
if not bike.is_selected():
bike.click()
if not car.is_selected():
car.click()
if not plane.is_selected():
plane.click()