set_grid_cell method

Future<Online> set_grid_cell(
  1. String grid_id,
  2. int row,
  3. int column,
  4. String text, {
  5. bool show = true,
})

Implementation

Future<Online> set_grid_cell(String grid_id, int row, int column, String text,
    {bool show = true}) async {
  var selector = Css('#grid\\#$grid_id\\#$row\\,$column\\#if-r');
  if (show) Show.action('setting', selector.selector, 'to', text);
  await wait(Waitable.Element(selector));
  await wait(Waitable.Milliseconds(500));
  await (await page).click(selector.selector);
  var input_selector = Css('input[id="grid\\#$grid_id\\#$row,$column\\#if"]');
  await (await page).waitForSelector(input_selector.selector);
  await (await page).type(input_selector.selector, text);
  await (await page).keyboard.press(Key.tab);
  return this;
}