06
Jul

Switching focus in winium

In order to switch between two windows / apps (initialized with winium driver), one can switch between two desktop windows by using following code snippet:

WebElement nextWindow = winiumdriver.findElementByName(“Window title goes here….”);
nextWindow.click();