有两个与该定位器匹配的元素。第一个不可见,因此我假设您要单击第二个。
temp = driver.find_elements_by_xpath('//input[@value="TEMP"]')[1] # get the second element in collectionaction = action_chains.ActionChains(driver)action.move_to_element(temp)action.click()action.perform()
有两个与该定位器匹配的元素。第一个不可见,因此我假设您要单击第二个。
temp = driver.find_elements_by_xpath('//input[@value="TEMP"]')[1] # get the second element in collectionaction = action_chains.ActionChains(driver)action.move_to_element(temp)action.click()action.perform()