code: function (selector, done) {
    this.evaluate_now((selector) => {
      let element = document.querySelector(selector)
      if (!element) {
        return false
      }
  
      for (let key in element) {
        if (key.startsWith('__reactInternalInstance$')) {
          return true
        }
      }
  
      return false
    }, done, selector)
  }
docs: Check if react element exists
  
  @param {String} selector
  @param {Function} done
  @return {Boolean}