I’m trying to migrate my Selenium IDE scripts and the file upload command
type | id=fileuploadelement | c:\mypath\logo.jpg
fails with the error:
Failed to set the ‘value’ property on ‘HTMLInputElement’: This input element accepts a filename, which may only be programmatically set to the empty string.
I recorded a file upload manually and it recorded the same command (except it changed my path to ‘c:\fakepath\’
How do I do a file upload in Katalon Automation Recorder?
It just occurred to me that this might be something that was restricted by Chrome. I have an inkling that Selenium IDE was only ever a Firefox plugin because there were some commands that weren’t permitted by the Chrome API. So I installed Firefox and got the Firefox Katalon plugin and it also failed on the upload with this error:
Sorry for letting you wait. We will release a fix for Chrome version next week. Unfortunately, we currently cannot do the same thing for Firefox version due to the browser’s mechanism.
New version (3.3.2) has been released. As being said earlier, o****nly Chrome version of the extension is supported, and CSS locator must be used. Make sure the value is a correct absolute file path. Invalid file path might stop the execution.
New version (3.3.2) has been released. As being said earlier, only Chrome version of the extension is supported, and CSS locator must be used. Make sure the value is a correct absolute file path. Invalid file path might stop the execution.
I am happy to see this post and I tried uploading a file. It was successful.
Issue was with after uploading the file.
After adding the attachment I need to click on Upload File - here the file got attached was getting removed again. Can you please help me out on how to fix this.
New version (3.3.2) has been released. As being said earlier, o****nly Chrome version of the extension is supported, and CSS locator must be used. Make sure the value is a correct absolute file path. Invalid file path might stop the execution.
Will this be fixed in the later versions for firefox browser.
Hi there, I’ve been working on a similar issue and it seems that however I follow the format, the upload just isn’t successful
also, since I was working on the Katalon IDE for firefox, I saved and opened my suite in a new chrome IDE, and this resulted in my “senKeys ${KEY_DOWN}/{KEY_ENTER}” not working anymore. they just don’t change the data entry.
Hi there, I’ve been working on a similar issue and it seems that however I follow the format, the upload just isn’t successful
also, since I was working on the Katalon IDE for firefox, I saved and opened my suite in a new chrome IDE, and this resulted in my “senKeys ${KEY_DOWN}/{KEY_ENTER}” not working anymore. they just don’t change the data entry.
Hi, I tried it with the css=input[] and I tried replacing sendKeys with typeKeys (when I first recorded, the default was Type, and it didn’t work), but it still doesn’t work.
I just want to inform that since 3.4.10 the limitation with CSS locators has been lifted. Now you can set file input values in Chrome using all types of locators.
Regarding Firefox version, I would like to ask you a question. Would it help if we add the ability to call external applications (e.g. AutoIT), and you can use them to automate steps that we cannot?
Hi, sorry but I’m still unclear on the uses of CSS to upload a local file. I’m new to selenium and Katalon so bare with me.
What command, target and (if there’s supposed to be more than one line) sequence do I use upload a file from my local drive onto web-page.
say the web-page’s upload section is like this:
and it opens a upload window like this:
and I want to select one of the pdfs or jpgs.
How do I write the code in here:
Please help ASAP.
Thank you, sorry for my confusion.