Stop audio recording (FR)

Perfecto Command

mobile:audio.recording:stop

Purpose

Stops recording the audio output from the device, closes the file, and stores it in the media storage server at the URL declared at the start of audio recording.

Parameters

None

Return Value

None

Exceptions

None

Examples

Copy

Java sample

//declare the Map for script parameters
Map<String, Object> params = new HashMap<>();

driver.executeScript("mobile:audio.recording:stop", params)
Copy

JavaScript sample

var params = {};
browser.executeScript('mobile:audio.recording:stop', params);
Copy

C# sample

 //declare the Map for script parameters
Dictionary<String, Object> pars = new Dictionary<String, Object>();

driver.ExecuteScript("mobile:audio.recording:stop", pars);