When “Upload File” or “Send Keys” will not upload files:
1st Create a custom keyword, see attached UploadFilesCKW.txt
2nd Add the custom keyword to your test case, see attached UploadFileTC.txt
When “Upload File” or “Send Keys” will not upload files:
1st Create a custom keyword, see attached UploadFilesCKW.txt
2nd Add the custom keyword to your test case, see attached UploadFileTC.txt
I’ve use this code, but when I call some testcase in testsuite, the program upload file twice or more.
Dave Evers said:
When “Upload File” or “Send Keys” will not upload files:
1st Create a custom keyword, see attached UploadFilesCKW.txt
2nd Add the custom keyword to your test case, see attached UploadFileTC.txt
Dave Evers said:
When “Upload File” or “Send Keys” will not upload files:
1st Create a custom keyword, see attached UploadFilesCKW.txt
2nd Add the custom keyword to your test case, see attached UploadFileTC.txt
Its giving me below error
unable to resolve class keyword , unable to find class for annotation
@ line 31, column 2.
@keyword
^
1 error
please help
Not able to upload file using sendkey and upload file keyword
@Dave Evers i have tried your custom keyword but it only does click the object i pointed to… the robot script is not working. iT returned a passed mark but no file was uploaded.
10-04-2018 02:41:57 PM - [PASSED] - Object: ‘Object Repository/ApplicantForm/Upload Function/MedicareCardUpload’ is clicked on
10-04-2018 02:41:59 PM - [PASSED] - uploadFiles.uploadFile is PASSED
10-04-2018 02:41:59 PM - [END] - End action : uploadFiles.uploadFile
10-04-2018 02:41:59 PM - [START] - Start action : Statement - java.lang.Thread.sleep(3000)
10-04-2018 02:42:02 PM - [END] - End action : Statement - java.lang.Thread.sleep(3000)
10-04-2018 02:42:02 PM - [PASSED] - Test Cases/Reusable Test Cases/ApplicantsForm
10-04-2018 02:42:02 PM - [END] - End Test Case : Test Cases/Reusable Test Cases/ApplicantsForm
Mark Daniel Magumcia said:
@Dave Evers i have tried your custom keyword but it only does click the object i pointed to… the robot script is not working. iT returned a passed mark but no file was uploaded.
10-04-2018 02:41:57 PM - [PASSED] - Object: ‘Object Repository/ApplicantForm/Upload Function/MedicareCardUpload’ is clicked on
10-04-2018 02:41:59 PM - [PASSED] - uploadFiles.uploadFile is PASSED
10-04-2018 02:41:59 PM - [END] - End action : uploadFiles.uploadFile
10-04-2018 02:41:59 PM - [START] - Start action : Statement - java.lang.Thread.sleep(3000)
10-04-2018 02:42:02 PM - [END] - End action : Statement - java.lang.Thread.sleep(3000)
10-04-2018 02:42:02 PM - [PASSED] - Test Cases/Reusable Test Cases/ApplicantsForm
10-04-2018 02:42:02 PM - [END] - End Test Case : Test Cases/Reusable Test Cases/ApplicantsForm
Try typing out the file name using the robot class instead. I was able to upload it eventually. However, after updating to Mojave, it will encounter an error (unrelated to it):
“2018-10-04 17:25:11.084 java[29397:217552] pid(29397)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!”
Will appreciate if anybody can help me with this error!
I am also facing the same issue. Will appreciate it if anybody can help me to solve this error!
Hi @palakjsca, this new solution may work for you: How-to use ‘sendKeys’ or 'File Upload' to upload files