Кто-нибудь использовал селекционный веб-драйвер ActionChain для перетаскивания на странице реагировать на красивые слова?Я могу использовать следующее для выполнения drag_and_drop на одной странице примера, но я не могу заставить его работать на странице реагировать-красиво-dnd.он просто показывает: «Вы подняли элемент на месте. Используйте клавиши со стрелками для перемещения, пробел, чтобы сбросить, и нажмите клавишу отмены».
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
driver = webdriver.Remote(desired_capabilities=DesiredCapabilities.CHROME, command_executor='http://localhost:4444/wd/hub')
#drag and drop it does not work
driver.get("https://react-beautiful-dnd.netlify.com/iframe.html?selectedKind=board&selectedStory=simple")
loc = '//div[@class="quote-list__DropZone-sc-1fzhh8p-1 fuOOyc"]'
source_loc = driver.find_elements_by_xpath(loc)[1]
target_loc = driver.find_elements_by_xpath(loc)[2]
#error You have lifted an item in position
Use the arrow keys to move, space bar to drop, and escape to cancel.
#work for no problem
driver.get("http://jqueryui.com/resources/demos/droppable/default.html")
source_loc = driver.find_element_by_xpath('//div[@id="draggable"]')
target_loc = driver.find_element_by_xpath('//div[@id="droppable"]')
act = ActionChains(driver).drag_and_drop(source_loc, target_loc)
act.perform()