В Java мы можем написать такой код:
Actions act=new Actions(driver);
// find element which we need to drag
WebElement source=driver.findElement(By.xpath("(//span[text()='Thrillers'])[1]"));
WebElement destination=driver.findElement(By.xpath("(//span[text()='History'])[2]"));
// it will click and hold the triller box and move to element will move cursor to history in another box and then release
act.clickAndHold(source).pause(2000).moveToElement(destination).release().build().perform();
Но в C# я не смог найти метод pause () класса Actions ...
Мне нужно выполнить медленное перетаскивание.
Я использую Selenium WebDriver из пакета Nuget. NET Framework 4.8 и Visual Studio 2017.