public static io.appium.java_client.windows.WindowsDriver<org.openqa.selenium.WebElement> switchToWindowTitle (String windowTitle)
Finds and switches the opening application window to the working WindowsDriver session on the current desktop by the given title. This keyword should use when:
- The main application window has been closed and replaced by another window.
- The application has multiple working windows. We can switch among these windows.
- We already have an opened application and need to switch to without reopening requires
throws:
StepFailedException If Katalon Studio could not find any window that matches with the given title.
Returns:
The WindowsDriver after Katalon Studio switches successfully.
Parameters:
windowTitle
- Title of the opening application windows. Full text or partial text is acceptable.
Since:
7.1.0