Upload File But without Click the Choose Button

Upload File But without Click the Choose Button

  

Hi, i have a case where the client uses automation  tool to test the web application. Unfortunately the tool does not work if the new window (choose file) is open. So, how to work around this?

Thank you.

regards,

tan

Solution

It depends what you need. But of course it's not possible to automatically grab a file from the user's local computer and upload it to a website. What you could do is store a dummy file as a resource, and have special code (e.g. based on a privilige) that retrieves that file instead of a local file. But the logic would be different, so there's no way to automate actual code that's run when the user interacts with the app.

Solution