window method Null safety

void window(
  1. Window window
)

Switches the focus of void commands for this driver to the window with the given name/handle.

Throws NoSuchWindowException if the specified window can't be found.

Implementation

void window(Window window) {
  window.setAsActive();
}