UNPKG

appium

Version:
77 lines (71 loc) 2.52 kB
--- name: Is Element Selected short_description: Determine if a form or form-like element (checkbox, select, etc...) is selected example_usage: java: | MobileElement element = (MobileElement) driver.findElementByAccessibilityId("SomeAccessibilityID"); boolean isSelected = element.isSelected(); python: | self.driver.find_element_by_accessibility_id('SomeAccessibilityID').is_selected() javascript_wd: | let element = await driver.elementByAccessibilityId("SomeAccessibilityID"); let isSelected = await element.isSelected(); javascript_wdio: | let isSelected = driver.isSelected("~SomeAccessibilityId"); ruby: | @driver.find_element(:accessibility_id, "SomeAccessibilityID").selected? php: | // TODO PHP sample csharp: | // TODO C# sample client_docs: java: "https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/WebElement.html#isSelected--" python: "http://selenium-python.readthedocs.io/api.html#selenium.webdriver.remote.webelement.WebElement.is_selected" javascript_wdio: "http://webdriver.io/api/state/isSelected.html" javascript_wd: "https://github.com/admc/wd/blob/master/lib/commands.js#L1402" ruby: "http://www.rubydoc.info/gems/selenium-webdriver/Selenium/WebDriver/Element#selected%3F-instance_method" php: "https://github.com/appium/php-client/" # TODO PHP documentation link csharp: "https://github.com/appium/appium-dotnet-driver/" # TODO Dotnet documentation link # TODO: Confirm support for these per 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: /wd/hub/session/:session_id/element/:element_id/selected method: 'GET' url_parameters: - name: session_id description: ID of the session to route the command to - name: element_id description: ID of the element to check if it is selected response: - type: boolean description: Whether the element is selected # Links to specifications. Should link to at least one specification specifications: w3c: https://www.w3.org/TR/webdriver/#dfn-is-element-selected jsonwp: https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidselected