25 File Upload
How to upload files to a web site with Selenium scripts.
Learning Objectives
Upload file with Selenium WebDriver
Absolute Path vs Relative Path
Test 25: File Upload
The file upload means a user uploads one file (or many files) to a web app. It typically looks like the following:
Let’s see how to upload files manually.
Basically, three steps:
Click the “Choose File” button on the web page.
In the pop-up window, navigate to the file you had prepared.
Click the upload button.
In Test Automation, of course, there are no human operations.
Keep reading with a 7-day free trial
Subscribe to The Agile Way to keep reading this post and get 7 days of free access to the full post archives.