fill_action method

  1. @override
Future<Online> fill_action(
  1. Online browser,
  2. dynamic value
)
override

Implementation

@override
Future<Online> fill_action(Online browser, dynamic value) async {
  var page = (await browser.page);
  //page wait for completly loaded
  await Future.delayed(Duration(milliseconds: 500));
  for (var modifier in modifiers ?? []) {
    await page.keyboard.down(modifier);
  }
  //wait 500ms
  await Future.delayed(Duration(milliseconds: 500));
  await page.keyboard.press(key);
  //wait 500ms
  await Future.delayed(Duration(milliseconds: 500));
  for (var modifier in modifiers ?? []) {
    await page.keyboard.up(modifier);
  }

  return browser;
}