Voice assistant inject (FR)

Perfecto Command

mobile:voice:assist

Purpose

Sends a text string to the device's Voice Assistant (Siri) and allows the assistant to complete the action.

Restriction: Supported on devices running iOS 10.3 or later, configured for the XCUITest framework.

Parameters

Name Type Possible Values Description
text String Text of the input to send to the voice assistant.

Return Value

None

Exceptions

None

Examples

Copy

Java sample

Map<String, Object> pars = new HashMap<>();
pars.put("text", "Good morning, siri");
driver.executeScript("mobile:voice:assist", pars);
Copy

C# sample

Dictionary<String, Object> pars = new Dictionary<String, Object>();
pars.Add("text", "Good morning, siri");
String reStr = (String) driver.ExecuteScript("mobile:voice:assist", pars);