Close browser takes a long time when i open and close an excel file

Hi @Erik Does the following example also takes a long time?
On my machine after the file is downloaded the browser is closed immediately.

Download test
    New Browser    chromium    headless=false
    New Context
    New Page    https://github.com/testsmith-io
    ${link}    Get Element By Role    LINK    name=practice-software-testing
    Click    ${link}
    ${button}    Get Element By Role    BUTTON    name=Code
    Click    ${button}
    ${downloadPromise}    Promise To Wait For Download
    ${downloadButton}    Get Element By    Label    text=Download ZIP
    Click    ${downloadButton}
    ${download}=    Wait For    ${downloadPromise}
    Log    State of download is: ${download}[state]
    Log    File is downloaded at: ${download}[saveAs]
    Close Context
2 Likes