Stuck at file uploading step please help!

Hello , I have made changes according to your instructions .Its executing all the steps but not uploading file here is my console

03-14-2018 11:49:42 PM - [START] - Start Test Case : Test Cases/one more trial

03-14-2018 11:49:42 PM - [INFO] - Evaluating variables for test case

03-14-2018 11:49:42 PM - [START] - Start action : openBrowser

03-14-2018 11:49:42 PM - [INFO] - Opening browser

03-14-2018 11:49:42 PM - [INFO] - Starting ‘IE’ driver

03-14-2018 11:49:42 PM - [INFO] - Action delay is set to 0 seconds

Started InternetExplorerDriver server (32-bit)

3.6.0.0

Listening on port 22103

Log level is set to TRACE

Log file is set to D:\Users\mjoshi\AppData\Local\Temp\Katalon\Test Cases\one more trial\20180314_234940\IEDriverServer.log

Only local connections are allowed

Mar 14, 2018 11:49:44 PM org.openqa.selenium.remote.ProtocolHandshake createSession

INFO: Detected dialect: W3C

03-14-2018 11:49:44 PM - [RUN_DATA] - Logging run data ‘sessionId’ with value ‘9c8dd43d-faa9-46a1-8a6b-757b9f40a62c’

03-14-2018 11:49:44 PM - [RUN_DATA] - Logging run data ‘browser’ with value ‘IE 11’

03-14-2018 11:49:44 PM - [RUN_DATA] - Logging run data ‘platform’ with value ‘Windows 7’

03-14-2018 11:49:44 PM - [RUN_DATA] - Logging run data ‘seleniumVersion’ with value ‘3.7.1’

03-14-2018 11:49:44 PM - [RUN_DATA] - Logging run data ‘proxyInformation’ with value ‘ProxyInformation{proxyOption=NO_PROXY, proxyServerType=HTTP, password=, proxyServerAddress=, proxyServerPort=0}’

03-14-2018 11:49:44 PM - [PASSED] - Browser is opened with url: ‘’

03-14-2018 11:49:44 PM - [END] - End action : openBrowser

03-14-2018 11:49:44 PM - [START] - Start action : navigateToUrl

03-14-2018 11:49:44 PM - [INFO] - Checking url

03-14-2018 11:49:44 PM - [INFO] - Navigating to ‘https://ecms.doc.govt.nz/wcc/faces/wccmain

03-14-2018 11:49:47 PM - [PASSED] - Navigate to ‘https://ecms.doc.govt.nz/wcc/faces/wccmain’ successfully

03-14-2018 11:49:47 PM - [END] - End action : navigateToUrl

03-14-2018 11:49:47 PM - [START] - Start action : click

03-14-2018 11:49:47 PM - [INFO] - Finding Test Object with id ‘Object Repository/Page_docCM/upload button’

03-14-2018 11:49:47 PM - [INFO] - Checking object

03-14-2018 11:49:47 PM - [INFO] - Checking timeout

03-14-2018 11:49:47 PM - [INFO] - Finding web element with id: ‘Object Repository/Page_docCM/upload button’ located by 'By.xpath: //div[@id=‘DOCSV:glb:cdctb1’]/a/span

’ in ‘30’ second(s)

03-14-2018 11:49:47 PM - [INFO] - Found 1 web elements with id: ‘Object Repository/Page_docCM/upload button’ located by 'By.xpath: //div[@id=‘DOCSV:glb:cdctb1’]/a/span

’ in ‘30’ second(s)

03-14-2018 11:49:47 PM - [INFO] - Clicking on object: ‘Object Repository/Page_docCM/upload button’

03-14-2018 11:49:49 PM - [PASSED] - Object: ‘Object Repository/Page_docCM/upload button’ is clicked on

03-14-2018 11:49:49 PM - [END] - End action : click

03-14-2018 11:49:49 PM - [START] - Start action : uploadFile

03-14-2018 11:49:49 PM - [INFO] - Finding Test Object with id ‘Object Repository/Page_docCM/upload button’

03-14-2018 11:49:49 PM - [INFO] - Checking object

03-14-2018 11:49:49 PM - [INFO] - Uploading file ‘D:\\Users\\mjoshi\\Capture1.JPG’ to object: ‘Object Repository/Page_docCM/upload button’

03-14-2018 11:49:49 PM - [INFO] - Checking timeout

03-14-2018 11:49:49 PM - [INFO] - Finding web element with id: ‘Object Repository/Page_docCM/upload button’ located by 'By.xpath: //div[@id=‘DOCSV:glb:cdctb1’]/a/span

’ in ‘30’ second(s)

03-14-2018 11:49:49 PM - [INFO] - Found 1 web elements with id: ‘Object Repository/Page_docCM/upload button’ located by 'By.xpath: //div[@id=‘DOCSV:glb:cdctb1’]/a/span

’ in ‘30’ second(s)

03-14-2018 11:49:49 PM - [PASSED] - File ‘D:\\Users\\mjoshi\\Capture1.JPG’ sent to object: ‘Object Repository/Page_docCM/upload button’

03-14-2018 11:49:49 PM - [END] - End action : uploadFile

03-14-2018 11:49:49 PM - [PASSED] - Test Cases/one more trial

03-14-2018 11:49:49 PM - [END] - End Test Case : Test Cases/one more trial

On my screen only I can see it clicks on upload button and upload window opens but file is not uploading see screenshot

image.png

please help I really need to get this working I am giving poc for katalon tool with this application. Thanks a lot for your support

This worked for me:

Hi there,

Sorry for late response. Upon looking again at your web application, I’ve observed that there are two buttons:
1. Browse: To browse file but does not upload it
2. Upload: To upload selected file
So in conclusion, you need to pass Browse button as an object into ‘Upload File’ keyword to let it SELECT that file, but you also have to click on Upload button to UPLOAD it.

Sorry I don’t see your code fully at the beginning :slight_smile:

Regards

The whole upload process can be simulated like this:

WebUI.uploadFile(findTestObject('Page_docCM/browse button'), 'D:\\Users\\mjoshi\\Capture1.JPG')
WebUI.click(findTestObject('Page_docCM/upload button')) 

For me above script works.
Thanks Vinh :slight_smile:

Can you please provide solution for handling download functionality in Internet Explorer. I have provided screenshot.

Save Popup.png

Hello all for me given solution NOT worked… Auto it worked for me ! kushan is QA from community help me.but now. now I stuck at last step which is clicking n upload button please help

here is the screenshot

Capture`.JPG

Well it is the same error message from what you’ve posted in the beginning. How about checking again your current web application state before that ‘Click’ step?

Hello Vinh Nguyen , Finally its worked for me ! I add delay before last click here is the last success screenshot

IMG-20180319-WA0011.jpeg

IMG-20180319-WA0009.jpeg

all of sudden my IE execusion is very very slow please help

Hi mahesh,

You should create a new discussion in this case :). Your current original issue related to upload file has been resolved, therefore you should create a new one instead of ‘very very slow’ issue.

I will process to close this one.

Regards

Hi Mahesh, I added delay. But, it’s not working for me. Did you find any other workaround?

Can you please explain your test case in detail.
Scenario? And what’s not working

Thanks

I have a button. On click of it, it opens Windows Open dialog box. My script is able to click on the button, which is showing the Open dialog box. But, it is unable to upload the file. It is showing an error message, ‘unable to upload file’. I have used delay before and after the upload statement. But, it is now working.

Whichever browser you executing . If chrome use upload keyword in katalon if ie use auto it script

The problem is solved. We will have to provide xpath of ‘input’ tag whose type is ‘file’.

2 Likes