executeFunction method

Future executeFunction(
  1. String function, {
  2. bool tryPromise = true,
})

To run a custom function on WPP

Implementation

Future executeFunction(
  String function, {
  bool tryPromise = true,
}) async {
  await wpClient.evaluateJs(
    function,
    methodName: "executeFunction",
    tryPromise: tryPromise,
  );
}