Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Jun 13, 2017 12:26

Perfecto Command

mobile:timer:stop

Purpose

Stops the timer with the specified timer ID.

There is no need to stop the timer to use the Get timer function

Parameters

NameTypePossible ValuesDescription
timerIdStringTimerA | TimerB |
TimerC | other_name

Mandatory.

Unique timer identifier, that was used to start the timer.
Enter an identifier or use one of the listed identifiers.

Return Value

None

Exceptions

None

Examples

Java sample
Map<String, Object> params = new HashMap<>();
params.put("timerId", "myTime");
driver.executeScript("mobile:timer:stop", params); 
C# sample
Dictionary<String, Object> pars = new Dictionary<String, Object>();
pars.Add("timerId", "TimerB");
driver.ExecuteScript("mobile:timer:stop", pars);