如何在<select> Python中单击<option>值

时间:2015-08-05 14:36:19

标签: python html selenium select

我尝试使用代码单击certaion选项:     countries_dropdown = self.browser.find_element_by_class_name('countryBR')     dropdown = countries_dropdown.find_element_by_id('ControlGroupContact_ContactInputView_DropDownListCountry')     self.browser.execute_script(“arguments [0] .classList.remove('jqTransformHidden');”,下拉列表)     country_dropdown =选择(countries_dropdown.find_element_by_id('ControlGroupContact_ContactInputView_DropDownListCountry'))     country_dropdown.select_by_value(payer_details.country_code.upper()) 这似乎是点击,但是当我尝试点击状态时,列表为空,并且国家/地区下拉列表似乎已打开

0 个答案:

没有答案