click_on_context_menu_item method

Future<Online> click_on_context_menu_item(
  1. String text
)

Implementation

Future<Online> click_on_context_menu_item(String text) async {
  Show.action('clicking', 'on context menu item', text);
  await (await page).waitForSelector('td.urMnuTxt');
  await (await page).evaluate('''(text) => {
    const element = Array.from(document.querySelectorAll('td.urMnuTxt')).find((e) => e.innerText.includes(text));
    element.click();
  }''', args: [text]);
  return this;
}