• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2024 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from __future__ import annotations
6
7from typing import TYPE_CHECKING
8
9from crossbench.action_runner.action.action import Action
10from crossbench.action_runner.action.action_type import ActionType
11
12if TYPE_CHECKING:
13  from crossbench.action_runner.base import ActionRunner
14  from crossbench.runner.run import Run
15
16
17class ScreenshotAction(Action):
18  TYPE: ActionType = ActionType.SCREENSHOT
19
20  def run_with(self, run: Run, action_runner: ActionRunner) -> None:
21    action_runner.screenshot(run, self)
22