find_elements_by_xpath
返回的列表WebElement
,drag_and_drop
(和其他方法)接受单个WebElement
。采用find_element_by_xpath
source = driver.find_element_by_xpath('//*[@id="@R_824_2419@3"]')
target = driver.find_element_by_xpath('//*[@id="@R_824_2419@103"]')
Python。Selenium。drag_and_drop错误'AttributeError:move_to需要WebElement'
find_elements_by_xpath
返回的列表WebElement
,drag_and_drop
(和其他方法)接受单个WebElement
。采用find_element_by_xpath
source = driver.find_element_by_xpath('//*[@id="@R_824_2419@3"]')
target = driver.find_element_by_xpath('//*[@id="@R_824_2419@103"]')