selenium-ide icon indicating copy to clipboard operation
selenium-ide copied to clipboard

Is there a command to load files through a overlay?

Open QA1MTG opened this issue 8 years ago • 2 comments

Wording may be incorrect on the title of this In the old selenium IDE, if I wanted to activate the uploading of a file via a web overlay modal, I could find the input field and type the path directly into the field it would look something like this: type //input[@class="upload-input"] /users/name/directory/file.xlsx The command still works on Old IDE, but not in new IDE. I receive the following error Failed: This locator type is unavailable with this command

Is there an easier way to set this up in the new Selenium?

QA1MTG avatar May 30 '18 16:05 QA1MTG

It is available, just not with xpath locators.
Specifically when you upload files using type (not when you use it to normally type), you can't use xpath, because we are using a different engine than Selenium to execute that command.

corevo avatar May 31 '18 08:05 corevo

Duplicate of #120

corevo avatar May 31 '18 08:05 corevo