Skip to content

Timeout argument not used in Promise to wait for download keyword in specific case #5185

Description

@MarvKler

Describe the bug
I am using the keyword Promise to wait for download and i am setting the keyword argument download_timeout to 30 seconds. My default browser timeout is set to 10 seconds -> means: the given timeout as keyword argument is set higher than the normal browser timeout which is used by default.

Now, when executing the test case, the actual download takes more that 10 seconds (approx. 15-20 seconds), but the keyword fails with the message:

TimeoutError: page.waitForEvent: Timeout 10000ms exceeded while waiting for event "download"
=========================== logs ===========================
waiting for event "download"
============================================================

It seems like my given argument value of 30 seconds is not used at all during the keyword execution.

To Reproduce
Steps to reproduce the behavior:

  • see description

Expected behavior
The keyword accepts the given argument value of 30 seconds and uses this a timeout for the download promise.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: iOS
  • Browser: chrome
  • RF-Browser Version: 19.14.2

Additional context
Add any other context about the problem here.

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