Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 我知道你的时间。 Message: invalid argument: Unsupported locator strategy: null select = Select(browser.find_element_by_xpath("//select[_Python_Selenium_Drop Down Menu - Fatal编程技术网

Python 我知道你的时间。 Message: invalid argument: Unsupported locator strategy: null select = Select(browser.find_element_by_xpath("//select[

Python 我知道你的时间。 Message: invalid argument: Unsupported locator strategy: null select = Select(browser.find_element_by_xpath("//select[,python,selenium,drop-down-menu,Python,Selenium,Drop Down Menu,我知道你的时间。 Message: invalid argument: Unsupported locator strategy: null select = Select(browser.find_element_by_xpath("//select[contains(@id, 'ddlDealers')]")) # locate select element select_element = browser.find_element_by_xpath("//select") # cal

我知道你的时间。
Message: invalid argument: Unsupported locator strategy: null
select = Select(browser.find_element_by_xpath("//select[contains(@id, 'ddlDealers')]"))
# locate select element
select_element = browser.find_element_by_xpath("//select")

# call print to verify something has been located
print(select_element) 

# declare the select object
select = Select(select_element)
browser.find_element_by_css_selector('[name="drop-down-list"]')