selenium 拖拽元素
2019-07-25 本文已影响0人
木下瞳
了解更多关注微信公众号“木下学Python”吧~
https://blog.csdn.net/u012605082/article/details/80911513
element = driver.find_element_by_name("source")target = driver.find_element_by_name("target") from selenium.webdriver import ActionChainsaction_chains = ActionChains(driver)action_chains.drag_and_drop(element,target).perform()