Working with Radio buttons and Check boxes in Selenium with Python Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Prerequisite: Browser Automation Using Selenium Requirement: You need to install chrome driver and set path. Click here to download. Selenium is an effective device for controlling an internet browser through the program. It is purposeful for all browsers, works on all fundamental OS and its scripts are written in numerous languages i.e Python, Java, C#, etc, we can be running with Python. Approach: Take any URL.Select radio button. Navigate radio button using xpath. Select check boxes.Navigate check box using xpath. Use the copied xpaths in the below program. Python3 # Import selenium module from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys import time # Using chrome driver driver = webdriver.Chrome() # Web page url driver.get("https://fs2.formsite.com/meherpavan/form2/index.html?1537702596407") # Selecting radio button # Select male driver.find_element_by_xpath( '//*[@id="q26"]/table/tbody/tr[1]/td/label').click() # Selecting check box # Select sunday driver.find_element_by_xpath( '//*[@id="q15"]/table/tbody/tr[1]/td/label').click() # Select monday driver.find_element_by_xpath( '//*[@id="q15"]/table/tbody/tr[2]/td/label').click() Output: Comment More infoAdvertise with us Next Article Working with Input box/Test Box in Selenium with Python P praveeny182 Follow Improve Article Tags : Python Practice Tags : python Similar Reads Working with Input box/Test Box in Selenium with Python Selenium is an effective device for controlling an internet browser through the program. It is purposeful for all browsers, works on all fundamental OS and its scripts are written in numerous languages i.e Python, Java, C#, etc, we can be running with Python.Working with Input box/Test Box, let us h 1 min read Working with Input box/Test Box in Selenium with Python Selenium is an effective device for controlling an internet browser through the program. It is purposeful for all browsers, works on all fundamental OS and its scripts are written in numerous languages i.e Python, Java, C#, etc, we can be running with Python.Working with Input box/Test Box, let us h 1 min read Interacting with Webpage - Selenium Python Seleniumâs Python module is designed for automating web testing tasks in Python. It provides a straightforward API through Selenium WebDriver, allowing you to write functional and acceptance tests. To open a webpage, you can use the get() method for navigation. However, the true power of Selenium li 4 min read Interacting with Webpage - Selenium Python Seleniumâs Python module is designed for automating web testing tasks in Python. It provides a straightforward API through Selenium WebDriver, allowing you to write functional and acceptance tests. To open a webpage, you can use the get() method for navigation. However, the true power of Selenium li 4 min read Interacting with Webpage - Selenium Python Seleniumâs Python module is designed for automating web testing tasks in Python. It provides a straightforward API through Selenium WebDriver, allowing you to write functional and acceptance tests. To open a webpage, you can use the get() method for navigation. However, the true power of Selenium li 4 min read Check High School Result using Selenium in Python We are going to study check high school result status pass or fail by using selenium. This is very useful for schools because when they check how many student pass-fail and what is the name of a fail student. If the student amount is 10 and less than 10 then check easily by manual when if the number 3 min read Like