R
R
rmfalx2017-08-18 14:51:06
Python
rmfalx, 2017-08-18 14:51:06

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

1 answer(s)
V
Vlad Grigoriev, 2017-08-18
@Vaindante

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 question

Ask a Question

731 491 924 answers to any question