How to select a file from a folder

Hello,

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.
Reason:
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.

Hello @neethu73

Please you can look below link .

see you !

Hi @emine

That worked perfectly!!. Now I am facing a new challenge :frowning: So far i was running all my test cases in Google chrome. Just for testing, i switched the test run browser to IE. I am receiving error,

Test Cases/Software Management/Manufacturer File path/test case - file import FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to set text ‘root’ of object ‘Object Repository/proactive assign/Page_eSDMS/input_UserId or Email_homeCont’
at .

The same is working perfectly in chrome. Here are my version details. Are there any known issues with IE?

image
image

1 Like

Please create a new topic for this issue.

There are some additional IE settings:
https://docs.katalon.com/katalon-studio/docs/internet-explorer-configurations.html

Hello @Mate_Mrse,

Thanks for the update. I have made all the additional settings, however still i am facing the same issue. I am unable to record in IE also. Its just opening the browser and going to the URL, after that automatically it close the browser.

any thoughts?