I have been searching the forum on how to upload a file and I am not having any luck find a solution to my problem.
I am trying to do this manually and I have looked at https://docs.katalon.com/katalon-studio/tutorials/handle_file_uploads.html#what-is-file-upload-in-testing.
I understand most of what the image says (attached), I just don’t understand how to create an object for uploading a file.
In the image, what does the “Upload file” object look like?
It is working for me like this
WebUI.uploadFile(findTestObject(‘EMT/No PTT/UploadBtn’), ‘C:\test.file’)
And you need to have that file located in C:\
WebUI.uploadFile only works on element with
If you want to do file upload manually, you could try creating a keyword to simulate the file upload using robot.
You can see it here: https://stackoverflow.com/questions/45398100/how-to-upload-a-file-photo-using-katalon-studio
For upload file object you can use “//*[@id=“album_image”]” as i have seen for 3 sites and have found that for all the 3 sites this is available
Upload File = //*[@id=“album_image”]