Selecting a drop-down list by using the Selenium.select_by_visible_text() method in Python Last Updated : 02 Nov, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report 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. Different methods of Select class: Selection an option from the dropdown menu by INDEX.Selection an option from the dropdown by VISIBLE TEXT.Selection an option from the dropdown menu by VALUE. we are discussing on visible text method in the drop-down list. The strategy chooses the alternative by its obvious choice label esteem. It acknowledges the noticeable content estimation of the choice tag and brings nothing back. Requirement: You need to install chromedriver and set path. Click here to download.for more information follows this link. Working with Drop-down list: Initially, you have to import the Select class and afterward you have to make the case of Select class. After making the case of Select class, you can perform select strategies on that occasion to choose the choices from the dropdown list. from selenium.webdriver.support.ui import Select for selection by using drop=Select(driver.find_element_by_id(' ')) drop.select_by_visible_text(" ") Example: We will be doing the following: Import selenium moduleImport select class moduleUsing web page for drop down list (URL).Navigate to the id of option bar. Python3 # importing the modules from selenium import webdriver from selenium.webdriver.support.ui import Select import time # using chrome driver driver=webdriver.Chrome() # web page url driver.get("https://fs2.formsite.com/meherpavan/form2/index.html?1537702596407") # find id of option x = driver.find_element_by_id('RESULT_RadioButton-9') drop=Select(x) # select by visible text drop.select_by_visible_text("Afternoon") time.sleep(4) driver.close() Output: Comment More infoAdvertise with us Next Article find_element_by_css_selector() driver method - Selenium Python P praveeny182 Follow Improve Article Tags : Python Python-selenium Practice Tags : python Similar Reads Select Drop-down list using select_by_index() in Selenium - Python Prerequisite: Browser Automation Using Selenium 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 2 min read How to select a drop-down menu value using Selenium in Python? Prerequisite: Browser Automation Using Selenium 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 2 min read Get all text of the page using Selenium in Python As we know Selenium is an automation tool through which we can automate browsers by writing some lines of code. It is compatible with all browsers, Operating systems, and also its program can be written in any programming language such as Python, Java, and many more. Selenium provides a convenient A 3 min read find_element_by_css_selector() driver method - Selenium Python Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using the get method, you might want to play m 2 min read find_element_by_link_text() driver method - Selenium Python Selenium's Python Module is built to perform automated testing with Python. Selenium Python bindings provide a simple API to write functional/acceptance tests using Selenium WebDriver. After you have installed selenium and checked out - Navigating links using get method, you might want to play more 3 min read is_selected() element method - Selenium Python Seleniumâs Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method â Selenium Python. Just bein 2 min read Like