lefthandedgoat / canopy

f# web automation and testing library, built on top of Selenium (friendly to c# also)
http://lefthandedgoat.github.io/canopy/
MIT License
506 stars 115 forks source link

upload a file from the UI buttons. #440

Open manishdube opened 6 years ago

manishdube commented 6 years ago

do we have a canopy function that would assist in uploading a file from a location on a local drive and uploading it to the UI?

lefthandedgoat commented 6 years ago

You use << and write the file path to the upload control on the page.

VictorHug0 commented 5 years ago

There is another option:

  1. Open Manage NuGet Package for Solution
  2. Search and install AutoitX

Then you can do this:

 open AutoIt

 AutoItX.WinActivate("Open") |> ignore
 AutoItX.Send("C:\\yourFilePath")
 AutoItX.Send("{ENTER}")