Hi Guys, I got a problem.
When I was using Selenium,
there was a Print Dialog jump out from the Chrome,
``` driver.switch_to.window(driver.window_handles[1]) ```
By using this code, I can switch the handles which is that Print Dialog.
But it just can't do anything.
Such as ,
find some element to click , use ActionChains to send Keys.ESCAPE.
anything were not working.
How can I do.
For the thing I need,
I just need to click the Cancel Print button ,
Or ActionChains send Keys.ESCAPE to close the Print Dialog.
OOR, is there other ways to do?
Using Version: Selenium 4.1.3 / Python 3.10.3
Thanks All Of You