Skip to content

Commit

Permalink
feat: Include 'hittable' attribute (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Aug 25, 2023
1 parent 5d674af commit b56a3d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions docs/element-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ selected | Whether the element is [selected](https://developer.apple.com/documen
index | Element's index in the hierarchy relatively to its parent. Only available since Appium 1.20.0. Indexing starts from `0`. | '2'
rect | Element's rectangle. The actual data of this attribute is based on element's [frame](https://developer.apple.com/documentation/xctest/xcuielementattributes/1500911-frame?language=objc). | {'x': 0, 'y': 0, 'width': 100, 'height': 100}
value | Element's value. This is a complex attribute, whose calculation algorithm depends on the actual element type. Check [WebDriverAgent sources](https://github.com/appium/WebDriverAgent/blob/master/WebDriverAgentLib/Categories/XCUIElement%2BFBWebDriverAttributes.m) to know more about how it is compiled (method `- (NSString *)wdValue`). Could be `null` | 'hello'


hittable | Whether the element is [hittable](https://developer.apple.com/documentation/xctest/xcuielement/1500561-hittable). This attribute is not included into the XML page source due to performance reasons, although you can use it in element locators or fetch its value using [getAttribute](https://www.w3.org/TR/webdriver2/#get-element-attribute) API. *Only available since driver version 4.35*. | 'true'
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"appium-ios-device": "^2.5.4",
"appium-ios-simulator": "^5.1.3",
"appium-remote-debugger": "^10.0.0",
"appium-webdriveragent": "^5.6.0",
"appium-webdriveragent": "^5.8.0",
"appium-xcode": "^5.1.4",
"async-lock": "^1.4.0",
"asyncbox": "^2.9.4",
Expand Down

0 comments on commit b56a3d4

Please sign in to comment.