Pages

Appium -Web Commands

 Switch to Widow:

Change focus to another window (Web context only)

driver.switchTo().window("handle");

Close the Window

Close the current window (Web context only)

driver.close();

Get Window Handle:

Retrieve the current window handle (Web context only)

String windowHandle = driver.getWindowHandle();

Get Window Handles:

Retrieve the list of all window handles available to the session (Web context only)

Set<String> windowHandles = driver.getWindowHandles();

Get Title:

Get the current page title (Web context only)

String title = driver.getTitle();

Get Window Size:

Get the size of the specified window (Web context only)

Dimension windowSize = driver.manage().window().getSize();

All Appium Web Commands are Same As Selenium WebDriver Commands.


















No comments:

Post a Comment

Note: Only a member of this blog may post a comment.