I'm trying to make a test for the Upload file button of a web using robotframework but I can't find the way to do it.
Concretely, I'm using this web as a example:
http://www.zamzar.com/
And this is the properties of the upload button:
<input id="inputFile" class="bodyBig" type="file" name="file_1" size="12"
style="position: absolute; display: block; opacity: 0; z-index: 0;">
As I saw in the documentation, I'm using the Choose File but I get stucked in the Windows pop-up, it opens but file is not selected:
My testcase looks like this:
*** Settings ***
Suite Setup Test Setup Open Browser
Suite Teardown Test Teardown Close Browser
Resource SeleniumKeywords.tsv
*** Test Cases ***
Select file typing path
File Should Exist C:${/}Users${/}MADI${/}Desktop${/}image.bmp
Wait Until Page Contains Element id=inputFile
Choose File id=inputFile C:${/}Users${/}MADI${/}Desktop${/}image.bmp
Select From List toExtensionSel jpg
Input Text toEmail [email protected]
Click Button uploadButton
Sleep 10
The file exists and it's in the correct location, do you know what do I need to change in order to get the file uploaded?
Thank you in advance, best regards.-