Delavor
Delavor

Reputation: 389

Drag and Drop local File in browser with Selenium C#

how can I drag and drop local file with selenium C#? It is possible?

Upvotes: 2

Views: 557

Answers (1)

Rakesh K singh
Rakesh K singh

Reputation: 29

Yes it is possible in Selenium with C# for web element.you can use below code

Action.ClickAndHold(onElement);    

Action.MoveToElement(toElement);  

Action.Release(toElement);   

Action.Build().Perform(); 

Upvotes: 1

Related Questions