i have make a test case as the tutorial above
my test case is upload three file from three button as continued,
it’s success for my first button, but in second button the file cannot be selected.
i have putted delay also
Robot framework sometime keeps the native window dialog open. This may be an issue in your case. Just make delay and use the custom keyword to upload the file three times in your testcsase. Add thread.sleep in your testcase in between file1 upload and file2 upload.
Hi @emine In my test case I had two file inputs and i need to add files at both the places. When i was using the Custom Keyword which you have provided the first file is getting uploaded correctly but for the second upload, it was throwing an error that there was no file even though the file exists.
I would like to upload local photo from Native Popup Window, I try using custom keyword according to this article ’ Katalon Studio Native Popup Window and Upload File’. When I run my testcase, I get this error. If you have time, please kindly check and reply to me. Thank you.
Test Cases/LivestockRegistration FAILED.
groovy.lang.MissingPropertyException: No such property: photo_upload for class: CustomKeywords
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
Thanks for your solution. But in my case after entering the path and clicking on Open button, the error message is displayed as “No record Found”.
The file is present on mentioned place and i tried same steps manually and it is working fine
@emine - Firstly, I would like to thank you for sharing the necessary steps to upload a file.
I did follow your steps for a file type which is .gze but couldn’t select the file from windows explorer. As @adam.stephens mentioned in the above conversation, the windows explorer stays open and doesn’t close.
I am trying to add the upload custom keyword into a groovy step definition. In my research, custom keywords cannot be called directly as it is in a test case via the CustomKeywords class. They must be called as a method of a groovy class. Can you provide any details on how do this?