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

Send command to inactive browser, The keyword will freeze and never timeout #41

Open
atthaboon opened this issue Aug 26, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@atthaboon
Copy link
Collaborator

atthaboon commented Aug 26, 2020

Describe the bug
If browser have a new popup window and we try to send command to non focus window.
The script will freeze due to chrome will not allow to send command if browser under inactive mode.
Workaround is you need to put test timeout for prevent.

To Reproduce
Reproduce new window issue
[Teardown] Close All Browser
${HEADLESS} Get variable value ${HEADLESS} ${False}
&{options} = create dictionary headless=${HEADLESS}
Open browser http://127.0.0.1:7272 options=${options}
Run Async Keywords
... Wait for new window open AND
... Click Element id=readdocs
Sleep 2s
Click Element id=readdocs

Workaround and tag [Timeout] and put the maximum execution limit instead.

Expected behavior
Keyword should fail after timeout 30s

@atthaboon atthaboon changed the title Use Run Async Keywords with Wait For New Window Open if keyword fail browser will freeze Send command to inactive browser, The keyword will freeze and never timeout Aug 27, 2020
@atthaboon
Copy link
Collaborator Author

Refer to this issue in puppeteer
puppeteer/puppeteer#3339

@atthaboon atthaboon added the bug Something isn't working label Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant