Can't upload an image in katalon studio on macOS

I’m trying to automate the upload image using katalon studio. After clicking on Upload Image (this is how it looks see attached image below). I’m stuck in the native fileupload dialog. I’m currently using macOS.

here is my code but unfortunately not working.

WebUI.click(findTestObject('Create/uploadImage'))
WebUI.uploadFile(findTestObject('Create/uploadImage'), '/Users/Ryan/Desktop/myimage.jpg')

and an error message

(Root cause: org.openqa.selenium.ElementNotInteractableException: Element <label class="uploadlabel"> is not reachable by keyboard.

Is there any alternative solution to my issue?

Thanks in advance.

Screen Shot 2018-02-28 at 4.36.14 PM.png

This might help: http://forum.katalon.com/discussion/5231/when-upload-file-or-send-keys-will-not-upload-files-for-your-test-case#latest

Dave Evers said:

This might help: http://forum.katalon.com/discussion/5231/when-upload-file-or-send-keys-will-not-upload-files-for-your-test-case#latest

Hello Dave,

Thanks for your help. I used the code you provide but i think katalon studio can’t read the macOS path file (I think my pathfile is incorrect?) I’m a bit confused on file path. I’ll do some research for this. :slight_smile:

Not sure about macOS path but Windows path would be C:\\Users\\username\\Downloads\\testfile.txt
Maybe yours should be ‘//Users/Ryan//Desktop//myimage.jpg’
or ‘\\Users\\Ryan\\Desktop\\myimage.jpg’

i m unable to upload image on mac.please help