text: module.exports = function (RED) {
    function PuppeteerPageFocus (config) {
      RED.nodes.createNode(this, config)
      this.selector = config.selector
      var node = this
      
      // Retrieve the config node
      this.on('input', function (msg) {
        msg.puppeteer.page.focus(node.selector)
          .then(() => {
            node.send(msg) 
          })
          .catch((err) => {
            node.error(err)
          })
      })
      oneditprepare: function oneditprepare() {
        $("#node-input-name").val(this.name)
      }
    }
    RED.nodes.registerType('puppeteer-page-focus', PuppeteerPageFocus)
  }
  