Przejdź do głównej treści
🇺🇦  We stand with the people of Ukraine. We encourage compassion, and hope for peace.   🇺🇦
Please support humanitarian efforts for the Ukraine crisis through the International Committee of the Red Cross! #StandWithUkraine

saveRecordingScreen

Zapisz nagranie wideo rozpoczęte przez komendę startRecordingScreen do pliku.

informacja

Ta komenda jest obsługiwana tylko dla sesji mobilnych działających na Appium.

Użycie
browser.saveRecordingScreen(filepath)
Parametry
NameTypeDetails
filepathStringpełna lub względna ścieżka do katalogu wykonania wygenerowanego wideo
Przykład
saveRecordingScreen.js
it('should save a video', async () => {
await browser.startRecordingScreen();
await $('~BUTTON').click();
await browser.saveRecordingScreen('./some/path/video.mp4');
});
Zwraca
  • <Buffer> return: bufor wideo

Welcome! How can I help?

WebdriverIO AI Copilot
Morty Proxy This is a proxified and sanitized view of the page, visit original site.