Skip to content

Commit

Permalink
Publish docs version 20.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileoss committed Sep 5, 2024
1 parent deb90d0 commit e82952b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/versioned_docs/version-20.x/api/device.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,16 @@ test('Capture view hierarchy', async () => {
});
```
### `device.generateViewHierarchyXml([shouldInjectTestIds])`
Generates a view hierarchy XML of the currently opened application. The XML is returned as a string.
The `shouldInjectTestIds` parameter is optional and defaults to `false`. When set to `true`, Detox will attempt to inject `testID` attributes into the XML for each element if undefined.
```js
const viewHierarchyXml = await device.generateViewHierarchyXml();
```
### `device.shake()` **iOS Only**
Simulate shake
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ The other projects are the Detox CLI, the Detox test app, example apps, and the
Here's a high-level overview of the repository structure:

- 📁 **detox-cli** - The CLI for Detox (e.g., `detox init`, `detox test`, read more about our [CLI docs])
- 📁 **detox-copilot** - Detox plugin that leverages large language models (LLM) to seamlessly invoke Detox actions (**work in progress**)
- 📁 **detox** - The Detox framework
- 📁 **android** - The Android native code, alongside native unit tests
- 📁 **ios** - The iOS native code, including its native submodules (e.g., DetoxSync)
Expand Down

0 comments on commit e82952b

Please sign in to comment.