I am using Katalon 8.0.5 and trying to upload jpg file via the following command line:
WebUI.uploadFile(findTestObject(‘Object Repository/SpyElements/2_Critères_de_recherche/9_Upload_ID/div_Recto’), ‘C:\Users\username\Desktop\ID\recto.jpg’)
Thank you very much for your answe @brandon.hein It’s seemes to be ok (i don’t have the previous error) but now I have another error, Katalon is enable to locate the object:
Unable to find the element located by ‘By.xpath: //input[@id=’/html[@class=‘ks-webkit537 ks-webkit ks-chrome92 ks-chrome’]/body/div[@id=‘root’]/form/div[@class=‘App’]/div[@class=‘Content’]/div[@class=‘sc-kHlotv hgKpxV IdentityDocumentScreen’]/div[@class=‘sc-bybRYC eHREYu’]/div[@class=‘sc-iihChq iPmKbR’]/label[@class=‘sc-cqktmv hHoqOB’]’]’. Please recheck the objects properties to make sure the desired element is located.
I also tried using Object Spy but I got the same error.
Do you please have an idea about how resolving this problem?