Skip to content

Error in documentation for handleDownloads and FileSystem helper ? #3409

@nicostubi

Description

@nicostubi

Hello,

I think there is a mistake in the documentation for handleDownloads:

I.handleDownloads('downloads/avatar.jpg');
I.click('Download Avatar');
I.amInPath('output/downloads');
I.waitForFile('downloads/avatar.jpg', 5);

Why would 'waitForFile' need 'downloads/', while 'I.amInPath' is already setting the current folder to 'output/downloads'?

This would be the fix:

I.waitForFile('avatar.jpg', 5);

Best Regards,
Nicolas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions