Skip to content

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

Open
@atthaboon

Description

@atthaboon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions