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

[Setting Scope is broken] "Set Browser Timeout" does not work together with "Wait for Condition" #3208

Closed
HenrikSchuette opened this issue Nov 2, 2023 · 3 comments
Assignees
Labels
bug Something isn't working priority: high
Milestone

Comments

@HenrikSchuette
Copy link

Describe the bug
When using the "Set Browser Timeout" together with the "Wait For Condition" keyword in multiple tests of the same suite, the Set Browser Timeout" Keyword fails with an Index Error. This seems to be related to the self._stack property in "settings_stack.py". Calling the keyword "Wait for conditions" adds a new entry to the stack:
image
This entry has the scope test although it should be of scope "Suite" which results in poping the last item of the stack:
image

To Reproduce
Steps to reproduce the behavior:

Library    Browser

*** Test Cases ***
Test1
    Open Expample Page
    Change Browser Timeout
    Open Expample Page
    Change Browser Timeout

Test2
    Open Expample Page
    Change Browser Timeout
    Open Expample Page
    Change Browser Timeout

*** Keywords ***
Change Browser Timeout
    ${old_timeout}    Set Browser Timeout    1s
    Log    Setting browser timeout to 1s
    [Teardown]    Set Browser Timeout    ${old_timeout}

Open Expample Page
    New Browser    chromium    ${False}
    New Context
    New Page    https://robotframework.org/
    Wait For Condition    title     matches     .*

Expected behavior
The tests run without an Index error.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: chromium
  • Version: 17.5.2
@aaltat
Copy link
Collaborator

aaltat commented Nov 2, 2023

Looks like a bug, @Snooz82 you made this feature what you think?

@allcontributors please add @HenrikSchuette for bugs

Copy link
Contributor

@aaltat

I've put up a pull request to add @HenrikSchuette! 🎉

@Snooz82
Copy link
Member

Snooz82 commented Nov 2, 2023

@aaltat correct.
I am already started working on it.
It’s a problem in Scope, that I have to analyze.
it’s a bit tricky.

@aaltat aaltat added bug Something isn't working priority: high labels Nov 3, 2023
@aaltat aaltat added this to the v18.0.0 milestone Nov 3, 2023
@Snooz82 Snooz82 changed the title "Set Browser Timeout" does not work together with "Wait for Condition" [Setting Scope is broken] "Set Browser Timeout" does not work together with "Wait for Condition" Nov 5, 2023
Snooz82 added a commit that referenced this issue Nov 5, 2023
Signed-off-by: René <snooz@posteo.de>
Snooz82 added a commit that referenced this issue Nov 5, 2023
Signed-off-by: René <snooz@posteo.de>
@Snooz82 Snooz82 closed this as completed in b280fba Nov 5, 2023
@Snooz82 Snooz82 self-assigned this Nov 5, 2023
@aaltat aaltat modified the milestones: v17.6.0, v18.0.0 Nov 12, 2023
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: high
Projects
None yet
Development

No branches or pull requests

3 participants