{"size": 289, "ext": "js", "max_stars_repo_path": "src/plugin.js", "max_stars_repo_name": "saikrishna321/appium-wait-plugin", "max_stars_repo_stars_event_min_datetime": "2021-03-15T07:25:42.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-07T12:01:46.000Z", "max_issues_repo_path": "src/plugin.js", "max_issues_repo_name": "saikrishna321/appium-wait-plugin", "max_issues_repo_issues_event_min_datetime": "2021-04-07T23:26:38.000Z", "max_issues_repo_issues_event_max_datetime": "2021-04-22T12:59:22.000Z", "max_forks_repo_path": "src/plugin.js", "max_forks_repo_name": "saikrishna321/appium-wait-plugin", "max_forks_repo_forks_event_min_datetime": "2021-09-16T20:50:51.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-15T05:21:24.000Z"}
{"max_stars_count": 3, "max_issues_count": 5, "max_forks_count": 2, "avg_line_length": 26.2727272727, "max_line_length": 59, "alphanum_fraction": 0.7093425606}
import BasePlugin from '@appium/base-plugin';
import Element from './element';

export default class WaitCommandPlugin extends BasePlugin {
  async findElement(next, driver, ...args) {
    const element = new Element(driver, args);
    await element.find();
    return await next();
  }
}
