appium
Version:
Automation for Apps.
75 lines (68 loc) • 2.28 kB
YAML
name: Maximize Window
short_description: Maximize the specified window (Web context only)
example_usage:
java:
|
driver.manage().window().maximize();
python:
|
self.driver.maximize_window();
javascript_wd:
|
await driver.maximize("handleName"); // Set size of window by handle name
await driver.maximize(); // Set current window
javascript_wdio:
|
driver.windowHandleMaximize("handleName"); // Set by window handle hame
driver.windowHandleMaximize(); // Current window
ruby:
|
@driver.resize_to(10, 10)
php:
|
// TODO PHP sample
csharp:
|
// TODO C# sample
client_docs:
java: "https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/WebDriver.Window.html"
python: "http://selenium-python.readthedocs.io/api.html#selenium.webdriver.remote.webdriver.WebDriver.maximize_window"
javascript_wdio: "http://webdriver.io/api/protocol/windowHandleMaximize.html"
javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L517"
ruby: "http://www.rubydoc.info/gems/selenium-webdriver/Selenium/WebDriver/Window:maximize"
php: "https://github.com/appium/php-client/" # TODO PHP documentation link
csharp: "https://github.com/appium/appium-dotnet-driver/" # TODO Dotnet documentation link
# Driver support by platform
driver_support:
ios:
xcuitest: false
uiautomation: false
android:
uiautomator2: false
uiautomator: false
mac:
mac: false
windows:
windows: false
client_support:
java: true
python: true
ruby: true
php: true
csharp: true
javascript_wd: true
javascript_wdio: true
# Information about the HTTP endpoints
endpoint:
url: /wd/hub/session/:session_id/window/:window_handle/maximize
method: POST
url_parameters:
- name: session_id
description: ID of the session to route the command to
- name: window_handle
description: Handle of the window to maximize. If 'current' it will maximize current window
# Links to specifications. Should link to at least one specification
specifications:
w3c: https://www.w3.org/TR/webdriver/#dfn-maximize-window
jsonwp: https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidwindowwindowhandlemaximize