Testing the Internet
File upload
What you’ll learn
You’ll learn how to automate file uploads in a web application using Leapwork. This includes interacting with native file dialogues, typing the file path, triggering the upload, and verifying the uploaded file’s name—all without writing any code.
Key lessons
- Launch the test case page and capture the Choose File button using the Start Recorder.
- Add a short wait to allow the native file dialogue to open.
- Use the Type Text block to enter the file path and simulate pressing Enter.
- Capture and click the Upload button to submit the file.
- Extract the uploaded file name using Get Web Attribute and compare it with the expected file name.
- Pass the test automatically when the uploaded file matches the expected result.
Additional resources
Continue your learning journey and explore all available product training sessions.