How to upload file from LambdaTest storage in C#
Hi Rebecca,
You need to mention the name of the file that needs to be picked from the storage using below mentioned code:
capabilities.SetCapability("lambda:userFiles", new string[] { "config.txt" }); // config is the text file present on LT storage
After that, you need sendKeys
to pass the path on the file upload button using:
For Mac:
addFile.sendKeys("/Users/ltuser/Downloads/config.txt");
For Win:
addFile.sendKeys("C:\\Users\\ltuser\\Downloads\\config.txt");
1 Like