WebDriverCommand.screenshot constructor

WebDriverCommand.screenshot(
  1. String screenshotName, [
  2. Map<String, Object?>? args
])

Constructor for WebDriverCommandType.noop screenshot.

Implementation

WebDriverCommand.screenshot(String screenshotName, [Map<String, Object?>? args])
    : type = WebDriverCommandType.screenshot,
      values = <String, dynamic>{
        'screenshot_name': screenshotName,
        if (args != null) 'args': args,
      };