How to know exactly what window is being interacted by user?

22 Views Asked by At

I want to check what window is being interacted with window_handle, but after changing window with my mouse, the current_window_handle was the same.

How can I solve that problem ?

1

There are 1 best solutions below

0
JeffC On

Selenium doesn't detect what's happening with the browser outside of the code running. It has a window handle and that window handle doesn't change if you mess with the browser manually by switching tabs, etc.