Open zackeddd opened 1 year ago
Hey, it is standart behaviour. You have to make browser focused + active till send any key .
Hey, it is standart behaviour. You have to make browser focused + active till send any key .
are you sure? i run several chromedrivers as well and never need a focus. Is the only related to UndetectedChromeDriver? How you force focus?
The problem should be here. (same as thenik)
https://stackoverflow.com/questions/70423331/selenium-locate-element-fails-when-chrome-in-background
Solution: change parallel to sync.
The problem should be here. (same as thenik) https://stackoverflow.com/questions/70423331/selenium-locate-element-fails-when-chrome-in-background
Solution: change parallel to sync.
when i use async the code wait for each instance to complete before moving on to the next one. This may take longer to complete compared to the parallel execution.
When opening multiple browsers in parallel and sending the keys, only the browser in the front is the one who receives the key, while the browsers in the back do not receive the keys.
EX:
` Code Used :