Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.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
Selenium webdriver 使用autoIt和selenium拖放本地文件_Selenium Webdriver_Autoit - Fatal编程技术网

Selenium webdriver 使用autoIt和selenium拖放本地文件

Selenium webdriver 使用autoIt和selenium拖放本地文件,selenium-webdriver,autoit,Selenium Webdriver,Autoit,我正在尝试将文件从本地计算机拖放到web应用程序中的容器区域。 放置区域的Html <div class="abcde"> <label>Select file(s) and drag here to upload</label> </div> 拖放不适用于此代码 Driver.FindElement(By.XPath("//*[@class='abcde']")).click(); AutoIt.Aut

我正在尝试将文件从本地计算机拖放到web应用程序中的容器区域。 放置区域的Html

 <div class="abcde">
            <label>Select file(s) and drag here to upload</label>
        </div>
拖放不适用于此代码

Driver.FindElement(By.XPath("//*[@class='abcde']")).click();
AutoIt.AutoItX.WinActive("Open");
AutoItX.Send(@"C:\Users\1234\Desktop\upp.txt");
Thread.Sleep(1000);
AutoItX.Send("{ENTER}");