Using Selenium to imitate dragging a file onto an upload element

后端 未结 4 675
轻奢々
轻奢々 2020-12-05 10:47

I have a web page that opens a div when you click a button. This div allows you to drag a file from your desktop onto its area; the file then gets uploaded to the server. I\

4条回答
  •  半阙折子戏
    2020-12-05 11:16

    You can use Blueduck Sda (http://sda.blueducktesting.com) Is an OSS that has implemented ALL selenium functions (It works with selenium RC) but it allows you to automate Windows actions. So you can test web, and interact with the OS. So you can make your test, and then, just tell the mouse to click on the element and drop it where you want!

    Nice testing!

提交回复
热议问题