get_value method

Future<String?> get_value(
  1. AbstractSelector selector,
  2. String property
)

Implementation

Future<String?> get_value(AbstractSelector selector, String property) async {
  Show.action('getting', property, 'of', selector.selector);
  await (await page).waitForSelector(selector.selector);
  var value = await (await page).evaluate('''(selector, property) => {
    return document.querySelector(selector).$property;
  }''', args: [selector.selector, property]);
  return value;
}