Answer the question
In order to leave comments, you need to log in
How to use selenium to return to the previous window?
Hello!
There is an order form. The user fills in all required fields. Presses the Save button and then pops up in separate tabs (I use chrome as the main browser) 2 tabs - on one contract in pdf, on the other payment in pdf. How to return to the main window using selenium or some other tools?
Answer the question
In order to leave comments, you need to log in
driver.switch_to_window(id_windows) - switch to window
driver.window_handles - list of all windows
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question