왼쪽 사이드 바에있는 요소를 가운데 영역으로 드래그하면됩니다. 하지만 오류 메시지가 나타나지는 않지만 작동하지 않습니다. image of the page 내 코드는 다음과 같습니다 사전에 //drag and drop - not working WebElement element = driver.findElement(By.xpath("//*[@id='componentsSection']/div[1]/div[1]")); Thread.sleep(1000); WebElement target = driver.findElement(By.id("layoutSection")); Thread.sleep(1000); (new Actions(driver)).dragAndDrop(element, target).build().perform();
Selenium webdriver 드래그 앤 드롭이 작동하지 않습니다. (자바)
감사합니다!
또한 다음 시도 할 수 있습니다 : – kushal
이 내 대답을 시도하고 from'와'to' 웹 요소 '내부 제대로 XPath를 교체합니다. –