I have a scenario where I have to select a particular file from the D drive when I click on the Add button as showed below
After clicking Add button it will go to desktop by default, somehow i have to specify the file path location and select the file I want. I have used the following scripts but that didn’t work out.
WebUI.uploadFile(findTestObject(‘Manufacturer file path/Page_eSDMS - root/div_Add’), ‘D:\EJ File import\ej120319.LOG’)
error as below:est Cases/Software Management/Manufacturer File path/test case - file import FAILED.
com.kms.katalon.core.exception.StepFailedException: Unable to upload file ‘D:\EJ File import\ej120319.LOG’ to object ‘Object Repository/Manufacturer file path/Page_eSDMS - root/div_Add’
The ‘Add button’ is having the following properties.
I have tried sendKeys method as well, that too didnt work. please let me know if there any way I can automate this scenario.