标签:style src dia index message may 定位 driver sele
# 下拉选择框随机选择 def selector(self,element): ele = Select(element) count_options = len(ele.options) - 1 ele.select_by_index(random.randint(0, count_options))
agency_ele = driver.find_element_by_id("Agency") js = """ele = document.getElementById("Agency"); ele.style.display=‘block‘; """ driver.execute_script(js) selector(agency_ele)
下拉选择框select元素的定位,报错:ElementNotInteractableException
标签:style src dia index message may 定位 driver sele
原文地址:https://www.cnblogs.com/momoon/p/12230475.html