Underlying Selenium only supports input type elements. Therefore one should point to the locator to correct element. If your page does not contain input element, you need to talk to your developers, most likely proper solution requires executing JavaScript.
Hi,
Am uploading couples documents manually. The same trying with RPA framework.
I m sharing you the code in below. Choose File is not working and saying that element is not intractable exception.
code:
Click Element //div[contains(text(),'Scan - Unit 111 Dillingham')]
Wait Until Element Is Visible //span[contains(text(),'Browse...')] 1 min
Click Element //span[contains(text(), 'Browse...')]
Log To Console testttttttttttttttttttt
Sleep 20
Log To Console before choosefile - ${CURDIR}\\sample.tif
Choose File //span[contains(text(), 'Browse...')] ${CURDIR}\\sample.tif
Wrote python custom method for file upload and using it in robot framework But that is also not supporting for me…
Python code Sharing in below. Upload File is my custom method in Python. am not able to load that .py file. I mean am in RIDE am writing script since Eclipse almost all versions have conflit with Robot Framework and Python. Not sure what exactly issue is but we see RPC XML request error always. So we switched to RIDE tool to write the RF.
Thanks for the reply. I think I understand more about it.
Right, there is no ‘input’ element. this is inbuilt IBM ECM product component that built on DOJO framework and necessary supporting technologies. Nothing is there to change that UI now. Now you can see the Browse element for reference attached screenshot.
Alternatively I have tried with ‘AutoIT’ using .exe (inside I gave the full path of the file) but it loading single file. But I want load couple of files at a time
snippet attached for reference.
Run AutoIt Script C:/Ride_Workspace/KOLEA_AUTOMATION/autoupload/auto5.exe
mentioned path is referring the exe file which has file path. But not sure how to pass multiple files path.
Please help me asap and thanks for the spontaneous reply.
Input element is present in that, but that is highlighting the ‘icon’ which is not clickable anymore.
Uploaded the screenshot for reference. I use Browse button upload manually.
It does not have to be clickable, because element is not clicked, it just needs to take in the string send by Choose File keyword. But if that does not work then you need to talk your development and ask a solution.
I also have a problem with “CHOOSE FILE”. The website allows the upload of a maximum of three files. The upload of the first file (e.g. test1.jpg) works without errors. If I want to upload a second file test2.jpg, it is displayed as test11.jpg. And if I execute a third upload, I get an error message from the website that a maximum of three files can be uploaded. In the debugger I can set a breakpoint after the upload. If I now manually click on the upload button after each upload and close the upload again without having uploaded a file, the file test2.jpg and test3.jpg are correctly added by CHOOSE FILE when I continue the script.