C# file upload use case from LambdaTest?
Hello Macy-davis,
User need to mentioned the name of the file that needs to be picked from the storage using the below-mentioned code :
capabilities.SetCapability("lambda:userFiles", new string[] { "config.txt" });// config is the text file present on LT storage
After that user needs to send keys to pass the path on the file upload button using the:
For Mac:- addFile.sendKeys("/Users/ltuser/Downloads/config.txt");
For Win: addFile.sendKeys("C:\\Users\\ltuser\\Downloads\\config.txt");