Skip to content Skip to sidebar Skip to footer

How To Un-minimize Selenium Window?

There are tons of guides that show how to minimize browser window opened with Selenium. But I can't find any guide for un-minimize minimized window. I don't want to maximize the w

Solution 1:

The solution is this:

#make this variable before minimize:
handle_of_the_window = driver.current_window_handle
driver.minimize_window()

# your code


# now switch to that window and restore it
driver.switch_to.window(handle_of_the_window)
driver.set_window_rect(0, 0)

Post a Comment for "How To Un-minimize Selenium Window?"