select_frame method

Future<Online> select_frame(
  1. String selector
)

Implementation

Future<Online> select_frame(String selector) async {
  var frames = await (await page).frames;
  for (var frame in frames) {
    try {
      await (await frame).$eval(selector, '''(element) => {
        element.click();
      }''');
    } catch (e) {
      print(e);
    }
  }
  return this;
}