downloadSapTable method

Future<Online> downloadSapTable()

Implementation

Future<Online> downloadSapTable() async {
  await this.waitFor(Sap.TableHeader);
  //send Ctrl+Shift+F10 to window
  await (await page).keyboard.down(Key.control);
  await (await page).keyboard.down(Key.shift);
  await (await page).keyboard.press(Key.f10);
  await (await page).keyboard.up(Key.control);
  await (await page).keyboard.up(Key.shift);
  await this.click(
      Css('div[role="button"][title="Spreadsheet... (Ctrl+Shift+F7)"]'));
  await this.click(Css('div[role="button"][title="Continue (Enter)"]'));
  await this.set(Css('#popupDialogInputField'), 'table.xlsx');
  await this.click(Css('#UpDownDialogChoose'));

  return this;
}