code: function (selector, done) {
    this.evaluate_now((selector) => {
      let elements = document.querySelectorAll(selector)
      if (!elements.length) {
        return []
      }
  
      elements = [].slice.call(elements) // Convert to array
  
      return elements.map(element => {
        for (let key in element) {
          if (key.startsWith('__reactInternalInstance$')) {
            const compInternals = element[key]._currentElement
            const compWrapper = compInternals._owner
            const {props, state, context} = compWrapper._instance
            return {
              props,
              state,
              context
            }
          }
        }
      }).filter(e => e != null)
    }, done, selector)
  }
docs: Find all react elements by selector and return their values
  
  @param {String} selector
  @param {Function} done
  @return {Array}