Uploading a File

@SIVHD,
I am using KSE 7.3 version and I need to automate upload file functionality . I am using mac .Please guide as I have been struggling with since 3 days

WebUI.uploadFile(findTestObject(‘Products/Images/image_uploaded’), ‘//Users/jaspreetmangat/Automation/PIM Automation/Images/pic1.png’)

But I am getting the error
8-13 09:59:50.521 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Unable to upload file ‘//Users/jaspreetmangat/Automation/PIM Automation/Images/pic1.png’ to object ‘Object Repository/Products/Images/Test browse’ (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to upload file ‘//Users/jaspreetmangat/Automation/PIM Automation/Images/pic1.png’ to object ‘Object Repository/Products/Images/Test browse’
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)

1 Like