Interface CanExecuteFlutterScripts

All Superinterfaces:
org.openqa.selenium.JavascriptExecutor
All Known Subinterfaces:
FlutterIntegrationTestDriver, SupportsFlutterCameraMocking, SupportsGestureOnFlutterElements, SupportsScrollingOfFlutterElements, SupportsWaitingForFlutterElements
All Known Implementing Classes:
FlutterAndroidDriver, FlutterIOSDriver

public interface CanExecuteFlutterScripts extends org.openqa.selenium.JavascriptExecutor
  • Method Summary

    Modifier and Type
    Method
    Description
    default Object
    Executes a Flutter-specific script using JavascriptExecutor.
    default Object
    Executes a Flutter-specific script using JavascriptExecutor.

    Methods inherited from interface org.openqa.selenium.JavascriptExecutor

    executeAsyncScript, executeScript, executeScript, getPinnedScripts, pin, unpin
  • Method Details

    • executeFlutterCommand

      default Object executeFlutterCommand(String scriptName, FlutterCommandParameter parameter)
      Executes a Flutter-specific script using JavascriptExecutor.
      Parameters:
      scriptName - The name of the Flutter script to execute.
      parameter - The parameters for the Flutter command.
      Returns:
      The result of executing the script.
    • executeFlutterCommand

      default Object executeFlutterCommand(String scriptName, Map<String,Object> args)
      Executes a Flutter-specific script using JavascriptExecutor.
      Parameters:
      scriptName - The name of the Flutter script to execute.
      args - The args for the Flutter command in Map format.
      Returns:
      The result of executing the script.