UNPKG

appium

Version:
81 lines (74 loc) 2.55 kB
--- name: Set Window Size short_description: Change the size of the specified window (Web context only) example_usage: java: | driver.manage().window().setSize(new Dimension(10, 10)); python: | self.driver.set_window_size(10, 10) javascript_wd: | await driver.setWindowSize(10, 10, "handleName"); // Set size of window by handle name await driver.setWindowSize(10, 10); // Set current window javascript_wdio: | driver.windowHandleSize("handleName", {height: 10, width: 10}); // Set by window handle hame driver.windowHandleSize({height: 10, width: 10}); // Current window ruby: | @driver.maximize_window() 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#setSize-org.openqa.selenium.Dimension-" python: "http://selenium-python.readthedocs.io/api.html#selenium.webdriver.remote.webdriver.WebDriver.set_window_size" javascript_wdio: "http://webdriver.io/api/protocol/windowHandleSize.html" javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L564" ruby: "http://www.rubydoc.info/gems/selenium-webdriver/Selenium/WebDriver/Remote/W3C/Bridge:maximize_window" 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/size 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 get size of. If 'current' it will get size of current window. json_parameters: - name: width type: number description: The new window width - name: height type: number description: The new window height # Links to specifications. Should link to at least one specification specifications: jsonwp: https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindowwindowhandlesize