Comments for Upload File By Selector

Topic for comments about Browser library keyword Upload File By Selector

Hi,

I’m using the browser library and have problem with the uploading file.

    File Should Exist    ../Resources/values.csv
    ${promise}=    Promise To Upload File    ../Resources/values.csv
    Click          id=files
    ${upload_result}=    Wait For    ${promise}

This part fails with:

   Error: ENOENT: no such file or directory, stat '../Resources/values' 

Any idea what I’m doing wrong…
(the same erros is for the Promise to Upload File)

… is this comment section a new, great idea?! :slight_smile:
/Tomasz

I think I’ve solved it for myself:

      ${promise}=    Promise To Upload File    ${CURDIR}/../Resources/values.csv

It looks that the relative path is not supported… :frowning:

/Tomasz

2 Likes

Remains to be seen :slight_smile:

@tomasz-bosak Topic relative upload paths by mkorpela · Pull Request #2203 · MarketSquare/robotframework-browser · GitHub
seems your observations might result in an improvement :smile:

2 Likes