mirror of
https://github.com/appium/appium.git
synced 2026-04-24 04:18:49 -05:00
docs(appium): Update documentation translations (#21579)
Co-authored-by: mykola-mokhnach <7767781+mykola-mokhnach@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1753dcd5e9
commit
c1ef362a89
@@ -1070,3 +1070,45 @@ identified by `:elementId`.
|
||||
#### Response
|
||||
|
||||
`string` - a base64-encoded PNG image
|
||||
|
||||
### printPage
|
||||
|
||||
```
|
||||
POST /session/:sessionId/print
|
||||
```
|
||||
|
||||
> WebDriver documentation: [Print Page](https://w3c.github.io/webdriver/#print-page)
|
||||
|
||||
Prints the page by rendering it as a paginated PDF document.
|
||||
|
||||
#### Parameters
|
||||
|
||||
| <div style="width:7em">Name</div> | Description | <div style="width:9em">Type</div> | Default |
|
||||
| --------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------ | ---------- |
|
||||
| `orientation?` | Page orientation. Supported values are `portrait` or `landscape`. | string | `portrait` |
|
||||
| `scale?` | Page scale. Supported values are in the range `[0.1, 2]`. | number | `1` |
|
||||
| `background?` | Whether to include background images | boolean | `false` |
|
||||
| `page?` | Object specifying the page width and height | [`PrintPageSize`](#printpagesizeparameter) | `{}` |
|
||||
| `margin?` | Object specifying the page margins | [`PrintPageMargins`](#printpagemarginsparameter) | `{}` |
|
||||
| `shrinkToFit?` | Whether to resize page contents to match `PrintPageSize.width` | boolean | `true` |
|
||||
| `pageRanges?` | Array of pages to be printed, for example, `[1, 4, '8-9']` | array | `[]` |
|
||||
|
||||
##### `PrintPageSize`
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| --------- | -------------------------------------------------------------------------------------------- | ------ | ------- |
|
||||
| `width?` | Page width. Must be greater than or equal to `(2.54 / 72)`. | number | `21.59` |
|
||||
| `height?` | Page height. Must be greater than or equal to `(2.54 / 72)`. | number | `27.94` |
|
||||
|
||||
##### `PrintPageMargins`
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| --------- | ----------------------------------------------------------------------------------------- | ------ | ------- |
|
||||
| `top?` | Page top margin. Must be greater than or equal to `0`. | number | `1` |
|
||||
| `bottom?` | Page bottom margin. Must be greater than or equal to `0`. | number | `1` |
|
||||
| `left?` | Page left margin. Must be greater than or equal to `0`. | number | `1` |
|
||||
| `right?` | Page right margin. Must be greater than or equal to `0`. | number | `1` |
|
||||
|
||||
#### Response
|
||||
|
||||
`string` - a base64-encoded PDF document
|
||||
|
||||
@@ -21,7 +21,7 @@ mentioned below.
|
||||
Installs the following extensions for browser webview testing:
|
||||
|
||||
- Drivers: `safari`[^1], `gecko`, `chromium`
|
||||
- Plugins: `images`
|
||||
- Plugins: `images`, `inspector`
|
||||
|
||||
#### Usage
|
||||
|
||||
@@ -34,7 +34,7 @@ appium setup browser
|
||||
Installs the following extensions for desktop application testing:
|
||||
|
||||
- Drivers: `mac2`[^1], `windows`[^2]
|
||||
- Plugins: `images`
|
||||
- Plugins: `images`, `inspector`
|
||||
|
||||
#### Usage
|
||||
|
||||
@@ -47,7 +47,7 @@ appium setup desktop
|
||||
Installs the following extensions for mobile testing:
|
||||
|
||||
- Drivers: `uiautomator2`, `xcuitest`[^1], `espresso`
|
||||
- Plugins: `images`
|
||||
- Plugins: `images`, `inspector`
|
||||
|
||||
#### Usage
|
||||
|
||||
|
||||
@@ -1070,3 +1070,45 @@ identified by `:elementId`.
|
||||
#### Response
|
||||
|
||||
`string` - a base64-encoded PNG image
|
||||
|
||||
### printPage
|
||||
|
||||
```
|
||||
POST /session/:sessionId/print
|
||||
```
|
||||
|
||||
> WebDriver documentation: [Print Page](https://w3c.github.io/webdriver/#print-page)
|
||||
|
||||
Prints the page by rendering it as a paginated PDF document.
|
||||
|
||||
#### Parameters
|
||||
|
||||
| <div style="width:7em">Name</div> | Description | <div style="width:9em">Type</div> | Default |
|
||||
| --------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------ | ---------- |
|
||||
| `orientation?` | Page orientation. Supported values are `portrait` or `landscape`. | string | `portrait` |
|
||||
| `scale?` | Page scale. Supported values are in the range `[0.1, 2]`. | number | `1` |
|
||||
| `background?` | Whether to include background images | boolean | `false` |
|
||||
| `page?` | Object specifying the page width and height | [`PrintPageSize`](#printpagesizeparameter) | `{}` |
|
||||
| `margin?` | Object specifying the page margins | [`PrintPageMargins`](#printpagemarginsparameter) | `{}` |
|
||||
| `shrinkToFit?` | Whether to resize page contents to match `PrintPageSize.width` | boolean | `true` |
|
||||
| `pageRanges?` | Array of pages to be printed, for example, `[1, 4, '8-9']` | array | `[]` |
|
||||
|
||||
##### `PrintPageSize`
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| --------- | -------------------------------------------------------------------------------------------- | ------ | ------- |
|
||||
| `width?` | Page width. Must be greater than or equal to `(2.54 / 72)`. | number | `21.59` |
|
||||
| `height?` | Page height. Must be greater than or equal to `(2.54 / 72)`. | number | `27.94` |
|
||||
|
||||
##### `PrintPageMargins`
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| --------- | ----------------------------------------------------------------------------------------- | ------ | ------- |
|
||||
| `top?` | Page top margin. Must be greater than or equal to `0`. | number | `1` |
|
||||
| `bottom?` | Page bottom margin. Must be greater than or equal to `0`. | number | `1` |
|
||||
| `left?` | Page left margin. Must be greater than or equal to `0`. | number | `1` |
|
||||
| `right?` | Page right margin. Must be greater than or equal to `0`. | number | `1` |
|
||||
|
||||
#### Response
|
||||
|
||||
`string` - a base64-encoded PDF document
|
||||
|
||||
@@ -21,7 +21,7 @@ mentioned below.
|
||||
Installs the following extensions for browser webview testing:
|
||||
|
||||
- Drivers: `safari`[^1], `gecko`, `chromium`
|
||||
- Plugins: `images`
|
||||
- Plugins: `images`, `inspector`
|
||||
|
||||
#### Usage
|
||||
|
||||
@@ -34,7 +34,7 @@ appium setup browser
|
||||
Installs the following extensions for desktop application testing:
|
||||
|
||||
- Drivers: `mac2`[^1], `windows`[^2]
|
||||
- Plugins: `images`
|
||||
- Plugins: `images`, `inspector`
|
||||
|
||||
#### Usage
|
||||
|
||||
@@ -47,7 +47,7 @@ appium setup desktop
|
||||
Installs the following extensions for mobile testing:
|
||||
|
||||
- Drivers: `uiautomator2`, `xcuitest`[^1], `espresso`
|
||||
- Plugins: `images`
|
||||
- Plugins: `images`, `inspector`
|
||||
|
||||
#### Usage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user