Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When creating new page, library does not obey the timeout value. Instead it will timeout in 10seconds. #435

Closed
aaltat opened this issue Oct 21, 2020 · 2 comments · Fixed by #449
Assignees
Labels
bug Something isn't working priority: critical
Milestone

Comments

@aaltat
Copy link
Member

aaltat commented Oct 21, 2020

With this test case:

*** Settings ***
Library  Browser  timeout=20s  retry_assertions_for=20s  run_on_failure=${None}  enable_playwright_debug=${True}
Suite Setup  New browser  browser=chromium   headless=${RUN_HEADLESS}
*** Test Cases ***
debug basic scnario
    A new 10 minute email is created and stored to second_email
*** Keywords ***
A new 10 minute email is created and stored to ${var_name}
    ${latest_email_page} =  New Page    ${TMP_EMAIL}
    ${email} =  Get textfield value  id=fe_text
    Log to console  ${email}
    Log to console  ${latest_email_page}
    Set Suite variable  ${latest_email_page}
    Set Suite variable  ${${var_name}}  ${email}
    [Return]    ${${var_name}}

Then this seen

==============================================================================
addLicense
==============================================================================
Add License with verification of email                                | FAIL |
page.goto: Timeout 10000ms exceeded.
=========================== logs ===========================
navigating to "https://10minutemail.net", waiting until "load"
============================================================
Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs.
------------------------------------------------------------------------------
addLicense                                                            | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed

More details in
logs.zip

@aaltat aaltat added bug Something isn't working priority: critical labels Oct 21, 2020
@aaltat aaltat added this to the v1.7.0 milestone Oct 21, 2020
@aaltat
Copy link
Member Author

aaltat commented Oct 21, 2020

There is hard coded 10s timeout in https://github.com/MarketSquare/robotframework-browser/blob/master/node/playwright-wrapper/playwright-state.ts#L344

@aaltat aaltat self-assigned this Oct 21, 2020
@mkorpela
Copy link
Member

The specific timeout is in New Page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: critical
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants