-1

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 ?

sahshaash
  • 11
  • 2

1 Answers1

0

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.

JeffC
  • 22,180
  • 5
  • 32
  • 55