How to select a file from a folder


#1

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.


#2

Hello @neethu73

Please you can look below link .


see you !


#3

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


#4

Please create a new topic for this issue.


#5

There are some additional IE settings:


#6

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?