from selenium import webdriver
import time

driver = webdriver.Chrome("../../chromedriver.exe")
driver.get("file:///D:/python/selenium_pages-master/form_web_element.html")
radios = driver.find_elements_by_id('s_radio')
for radio in radios:
    print(radio.text)
# checked = driver.find_element_by_xpath('//div[@id="s_radio"]/input[@checked="checked"]').get_attribute('value')
# print(checked)
xiaolei = driver.find_element_by_xpath('//div[@id="s_radio"]/input[@value="小雷老师"]').click()
ca0dd34e29d9bc06d26cd976d99f515218c808a3
<mask token>

<mask token>
driver.get('file:///D:/python/selenium_pages-master/form_web_element.html')
<mask token>
for radio in radios:
    print(radio.text)
<mask token>

<mask token>
driver = webdriver.Chrome('../../chromedriver.exe')
driver.get('file:///D:/python/selenium_pages-master/form_web_element.html')
radios = driver.find_elements_by_id('s_radio')
for radio in radios:
    print(radio.text)
xiaolei = driver.find_element_by_xpath(
    '//div[@id="s_radio"]/input[@value="小雷老师"]').click()

from selenium import webdriver
import time
driver = webdriver.Chrome('../../chromedriver.exe')
driver.get('file:///D:/python/selenium_pages-master/form_web_element.html')
radios = driver.find_elements_by_id('s_radio')
for radio in radios:
    print(radio.text)
xiaolei = driver.find_element_by_xpath(
    '//div[@id="s_radio"]/input[@value="小雷老师"]').click()

from selenium import webdriver
import time

driver = webdriver.Chrome("../../chromedriver.exe")
driver.get("file:///D:/python/selenium_pages-master/form_web_element.html")
radios = driver.find_elements_by_id('s_radio')
for radio in radios:
    print(radio.text)
# checked = driver.find_element_by_xpath('//div[@id="s_radio"]/input[@checked="checked"]').get_attribute('value')
# print(checked)
xiaolei = driver.find_element_by_xpath('//div[@id="s_radio"]/input[@value="小雷老师"]').click()