| Index: tools/telemetry/telemetry/page/actions/action_runner.py
|
| diff --git a/tools/telemetry/telemetry/page/actions/action_runner.py b/tools/telemetry/telemetry/page/actions/action_runner.py
|
| index 1bd11d3514268b767343445afc517d36315fbd24..7798a8ab6929a4f5cfdb9cf8178942b7ac2d5634 100644
|
| --- a/tools/telemetry/telemetry/page/actions/action_runner.py
|
| +++ b/tools/telemetry/telemetry/page/actions/action_runner.py
|
| @@ -22,8 +22,9 @@ from telemetry.web_perf import timeline_interaction_record
|
|
|
| class ActionRunner(object):
|
|
|
| - def __init__(self, tab):
|
| + def __init__(self, tab, skip_waits=False):
|
| self._tab = tab
|
| + self._skip_waits = skip_waits
|
|
|
| def _RunAction(self, action):
|
| action.WillRunAction(self._tab)
|
| @@ -153,7 +154,8 @@ class ActionRunner(object):
|
| Args:
|
| seconds: The number of seconds to wait.
|
| """
|
| - time.sleep(seconds)
|
| + if not self._skip_waits:
|
| + time.sleep(seconds)
|
|
|
| def WaitForJavaScriptCondition(self, condition, timeout_in_seconds=60):
|
| """Wait for a JavaScript condition to become true.
|
|
|