当前位置: 首页 > 工具软件 > as3recording > 使用案例 >

Appium-Stop Screen Recording(停止屏幕录制)

公良玺
2023-12-01


Stop recording screen

Example Usage
Javadriver.stopRecordingScreen();
driver.stopRecordingScreen(new BaseStopScreenRecordingOptions(…));
Pythonself.driver.stop_recording_screen()
Javascript// webdriver.io example
driver.stopRecordingScreen();
// wd example
await driver.stopRecordingScreen();
Ruby# ruby_lib example
stop_recording_screen
stop_recording_screen remote_path: 'https://example.com', user: 'example', pass: 'pass', method: 'POST'
# ruby_lib_core example
@driver.stop_recording_screen
@driver.stop_recording_screen remote_path: 'https://example.com', user: 'example', pass: 'pass', method: 'POST'
C#driver.StopRecordingScreen();
PHP// TODO PHP sample
Support
Appium Server
PlatformDriverPlatform VersionsAppium VersionDriver Version
iOSXCUITest9.3+1.6.0+All
UIAutomationNoneNoneNone
AndroidEspresso?+1.9.0+All
UiAutomator2?+1.6.0+All
UiAutomator4.3+AllAll
MacMacNoneNoneNone
WindowsWindowsNoneNoneNone
Appium Clients
LanguageSupportDocumentation
JavaAllappium.github.io
PythonNoneappium.github.io
Javascript (WebdriverIO)All
Javascript (WD)Allgithub.com
RubyAllwww.rubydoc.info
PHPNonegithub.com
C#Nonegithub.com
HTTP API Specifications
Endpoint

POST /session/:session_id/appium/stop_recording_screen

URL Parameters
namedescription
remotePathThe path to the remote location, where the resulting video should be uploaded. The following protocols are supported http/https, ftp. Null or empty string value (the default setting) means the content of resulting file should be encoded as Base64 and passed as the endpoint response value. An exception will be thrown if the generated media file is too big to fit into the available process memory.
usernameThe name of the user for the remote authentication.
passwordThe password for the remote authentication.
methodThe http multipart upload method name. The ‘PUT’ one is used by default.
JSON Parameters

None

Response

Base64 encoded string. If remote_path is set, the response is empty string. (string)

 类似资料: