I am developing a scenario where a file is uplodaded using the choose file robot framework keyword. The test runs and when the choose file executes, it hits the locator for the <input type="file"> element, the UI shows a red box at the bottom of the page (see attachment), but the file is not uploaded.
Im not sure if the UI doesn't know how to handle the upload, or if there is an error in my code:
choose file xpath=/html/body/div/div/div/div[2]/div/div/div/div/div/div/div/div/div[1]/div[1]/div[2]/div/span ${dataDir}studentSAT.csv
The ${dataDir} variable contains the OS full path to the file, and the file is at that location. As a point of validation, I tried changing the filename to one that is not present, and robot throws an error stating data not available.
Has anyone encountered this before?


${dataDir}contains an ending path delimiter? E.g., it equals something like:/home/testuser/datadir/- ? Otherwise, you're referencing something like/home/testuser/datadirstudentSAT.csv- Greg M