Focus Window
Focus Window API in Action only, does not take any Accessor or value.
Using which Brings the window above all other windows.
It is generally needed before using other native events and works with Windows OS only.
For pop-up windows, use Select Window API first and then use the Focus Window to focus the pop-up window.
Javascript example
navigateTo("https://www.apple.com/ ");
click(link("ac-gn-link ac-gn-link-mac"));
click(link("ac-gn-link ac-gn-link-ipad"));
setValue(textbox("ac-gn-searchform-input"),"apple");
focusWindow(click(link("Apple ID Support"));