0

I make a automated crawler for python-selenium but it's always automatically jump to my desktop.

Is it because I recycle swicth to window()?

Please tell me why?

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352

1 Answers1

0

To perform any action within the AUT(Application Under Test) Selenium needs to focus on the elements.

Due to the focus on the Browsing Context, itjumps to the foreground of your desktop.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352