selenium-ide: `type` command on `input type=file` broken for Chrome 72

πŸ› Bug Report

type command for setting a value into an <intput type="file"> element is broken in current Google Chrome stable (72). Works on previous one (71).

To Reproduce

Execute a type command to set a value on an <input type="file"> element.

Expected behavior

The input element should be set with the value provided.

Project file reproducing this issue.

https://github.com/vincent-olivert-riera/test-selenium-bug/blob/master/foo.side

Environment

OS: Debian (same problem in Ubuntu) Selenium IDE Version: all (I have tried from 3.5.3 to 3.2.5) Browser: Google Chrome Browser Version: 72.0.3626.81-1 (64-bit)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 34 (14 by maintainers)

Most upvoted comments

I’m sorry I can’t do it on my end, I will try to check on my end, it would be helpful if you could try using a beta or canary version of Chrome and see if it is fixed in those.

EDIT: I can’t reopen the issue, seems only googlers can do that.

Thanks for looking into this! I tested on several websites on Linux and Windows with the latest version of the IDE and Chrome 72.0.3626.96. Always the same result: {"code":-32000,"message":"Not allowed"}

The issue seems to happen on every file upload dialog on the web, for example

(These are not my websites).

Other tools like iMacros show the same issue - so the problem is with Chrome, not the Selenium IDE.

I found a workaround using the kantu xtype command, but this requires the computer/server to remain unlocked. So it is only a workaround, no solution.

Clarification: The workaround requires you to use the Kantu tool. It is another open-source selenium ide project, not this one here.

I just ran against version 72, mistakenly I used 71