0

I'm trying to upload a file at Selenium IDE using relative path but it didn't work. I really tried some approachs like this answer

This way works:

enter image description here

But what I want to do is something like this:

enter image description here

I need it because I need to send these test files to run in another computer without have to edit the .side files. Anyone knows commands, scripts, or any other method that I could try at Selenium IDE?

Isaac Gomes
  • 410
  • 1
  • 6
  • 15
  • Can you try `send keys` instead of `type` ? – Naveen Mar 13 '20 at 17:10
  • not sure it helps you, but you can send a local machine's file path to a remote webdriver... there's a specific way to do that. https://www.selenium.dev/selenium/docs/api/javascript/module/selenium-webdriver/remote/index_exports_FileDetector.html – pcalkins Mar 13 '20 at 21:42
  • thanks all you, @pcalkins and @Naveen, but I really want to know a way to do this without using Selenium webdriver solutions like `send keys` or `FileDetector`. I really need to use Selenium IDE and pass it to another person to execute (So, I can't execute remotely too). – Isaac Gomes Mar 14 '20 at 18:20
  • I believe the browser will require an absolute path. I'm not familiar with Selenium IDE, but in Java you could build the paths yourself using things like System.getProperty("user.home")... – pcalkins Mar 16 '20 at 18:56

0 Answers0