Skip to content

[πŸ› Bug]: After the user manually switches windows, the current value of the window handle remains unchangedΒ #15007

@Dylan-lijl

Description

@Dylan-lijl

What happened?

I don't know if this issue is a bug or a requirement

After the program runs, open the browser and open the default window. The user can operate the current window to open another window or a new window to access a new website. Then the user enters the start command in the background, and the program needs to retrieve the active window of the current user to query data

a window:

b window:
xxxxxx

The window where the user stays may be either 'a' or 'b', but the value of the current window handle is not the actual window handle where the user stays

How can we reproduce the issue?

The user opens a new window in the browser and accesses a new URL, then stops and calls the "current_cindow_handle" method to obtain the value and compare it with "windows_handles"

Relevant log output

null

Operating System

windows 10

Selenium version

python 3.10

What are the browser(s) and version(s) where you see this issue?

latest

What are the browser driver(s) and version(s) where you see this issue?

anything

Are you using Selenium Grid?

4.27.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!I-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions