UNPKG

appium

Version:
74 lines (66 loc) 2.16 kB
--- name: Get Session Capabilities short_description: Retrieve the capabilities of the specified session example_usage: java: | Map<String, Object> caps = driver.getSessionDetails(); python: | desired_caps = self.driver.desired_capabilities() javascript_wd: | let caps = await driver.sessionCapabilities('c8db88a0-47a6-47a1-802d-164d746c06aa'); javascript_wdio: | let caps = driver.session('c8db88a0-47a6-47a1-802d-164d746c06aa'); ruby: | @driver.session_capabilities php: | // TODO PHP sample csharp: | // TODO C# sample client_docs: java: "https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/remote/server/DefaultDriverSessions.html#get-org.openqa.selenium.remote.SessionId-" python: "http://selenium-python.readthedocs.io/api.html#selenium.webdriver.remote.webdriver.WebDriver.desired_capabilities" javascript_wdio: "http://webdriver.io/api/protocol/session.html" javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L227" ruby: "http://www.rubydoc.info/gems/selenium-webdriver/Selenium%2FWebDriver%2FRemote%2FOSS%2FBridge:session_capabilities" 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: true uiautomation: true android: uiautomator2: true uiautomator: true mac: mac: true windows: windows: true 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: /session/:session_id method: GET url_parameters: - name: session_id description: ID of the session to route the command to response: - type: object description: An object describing the session's capabilities # Links to specifications. Should link to at least one specification specifications: jsonwp: https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionid