Complete the code to import the Select class from selenium.webdriver.support.ui.
from selenium.webdriver.support.ui import [1]
The Select class is imported with a capital 'S' as Select from selenium.webdriver.support.ui.
Complete the code to create a Select object for a dropdown element stored in variable dropdown_element.
select = [1](dropdown_element)The Select class is used to create a Select object by passing the dropdown WebElement.
Fix the error in the code to select an option by visible text 'Option 1'.
select.[1]('Option 1')
The correct method to select by visible text is select_by_visible_text in Python Selenium.
Fill both blanks to select an option by index 2 and then deselect all options.
select.[1](2) select.[2]()
Use select_by_index to select by index and deselect_all to clear selections.
Fill all three blanks to create a Select object, select by value 'val1', and print the first selected option's text.
select = [1](dropdown) select.[2]('val1') print(select.[3].text)
Create the Select object with Select, select by value using select_by_value, and access the first selected option with first_selected_option.