Working with Radio buttons and Check boxes in Selenium with Python Last Updated : 17 Oct, 2022 Summarize Comments Improve Suggest changes Share 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 Radio buttons and Check boxes 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 How to click a button on webpage using Selenium? This article is all about how to click any button using Selenium on a webpage and many more concepts related to the same which are discussed below. Table of Content What is Selenium? How to click on a button using Selenium Conclusion Frequently Asked Questions on How to click a button on webpage usi 2 min read PyQt5 - Set skin to checked radio button In this article we will see how we can set skin to the checked check box, by default there is no image/skin associated with the radio button, this skin will appear when radio button will be in checked state. In order to add skin to the radio button for checked state, we have to change the style shee 2 min read Capture all the Options 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 will be using Python.Prerequisite: Browser Automation Using Selenium 2 min read Python Selenium - Find Button by text In this article, let's discuss how to find a button by text using selenium. See the below example to get an idea about the meaning of the finding button by text. Example: URL: https://html.com/tags/button/ We need to find the "CLICK ME!" button using the text "Click me!". Module Needed: Selenium: Th 2 min read Like