Article Overview:
This article will cover how you can achieve the following:
How to analyse the problems with file upload commands
Problem Statement:
When attempting to upload a file to a website within a test, it doesn't work, despite the fact that the same steps work manually.
Solution:
This is typically identified as an error with the file being provided for the upload.
If any verification steps are involved (such as with the Google example below), the file upload will fail.
Instead of uploading the desired file, you would end up uploading the verification page instead.
Google file verification example:
To overcome this issue, you can navigate to this page using a new URL.
Click the button to start the file download, and then upload the file stored in the LAST_DOWNLOADED_FILE variable to the input field, rather than using the link to the Google Drive file.
Comments
0 comments
Please sign in to leave a comment.