Search code examples
robotframework

In robot tests , how to check file is downloaded successfully


I am new to robot framework . My automation test has a step to download a file from web . How can I check the file is downloaded successfully to my local? I am using chrome and firefox browser.


Solution

  • You can check file by using OperatingSystem library. For exaple you can use keyword like:

    Wait Until Created
    

    or

    File Should Exist
    

    There are more keywords you can find useful, check the docs:

    https://robotframework.org/robotframework/latest/libraries/OperatingSystem.html