index.js
/**
   * Return number of elements matched by selector.
   * @param {string} selector CSS selector.
   * @returns {Promise<number>} Promise object represents the number of elements currently matched..
   */
Return number of elements matched by selector.
@param {string} selector CSS selector.
@returns {Promise} Promise object represents the number of elements currently matched
Return number of elements matched by selector . @param { string } selector CSS selector . @returns { Promise } Promise object represents the number of elements currently matched
length(selector) {
    const _s = Webview.replaceWrongQuotes(selector);
    return this.runJs(`
      return document.querySelectorAll('${_s}').length;
    `);
  }
length ( selector ) { const _s = Webview . replaceWrongQuotes ( selector ) ; return this . runJs ( ` ${ _s } ` ) ; }
Return number of elements matched by selector.
Return number of elements matched by selector .