Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 拖放操作在Chrome驱动程序版本76.0.3809.100中不起作用_C#_Visual Studio_Selenium_Selenium Chromedriver - Fatal编程技术网

C# 拖放操作在Chrome驱动程序版本76.0.3809.100中不起作用

C# 拖放操作在Chrome驱动程序版本76.0.3809.100中不起作用,c#,visual-studio,selenium,selenium-chromedriver,C#,Visual Studio,Selenium,Selenium Chromedriver,拖放在chrome驱动程序版本76.0.3809.100中不起作用。 我已经尝试了几个代码块来实现这一点,但是代码运行时没有任何问题,但是没有任何操作发生 Selenium和Chrome驱动程序版本如下所示: Selenium.Webdriver:v3.141.0 Selenium.Webdriver.ChromeDriver:v76.0.3809.68 请找到我用来实现拖放的代码块 IAction dragAndDrop1 = builder1.ClickAndHold(source).Mov

拖放在chrome驱动程序版本76.0.3809.100中不起作用。 我已经尝试了几个代码块来实现这一点,但是代码运行时没有任何问题,但是没有任何操作发生

Selenium和Chrome驱动程序版本如下所示: Selenium.Webdriver:v3.141.0 Selenium.Webdriver.ChromeDriver:v76.0.3809.68

请找到我用来实现拖放的代码块

IAction dragAndDrop1 = builder1.ClickAndHold(source).MoveToElement(destination).Release(destination).Build();
dragAndDrop1.Perform();
我还尝试了以下代码块

Actions ac= new Actions(driver);
ac.DragAndDrop(source, destination).Build().Perform();