How to use the selianize.RegisterConfigurationHook function in selianize

To help you get started, we’ve selected a few selianize examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SeleniumHQ / selenium-ide / packages / selenium-ide / src / plugin / manager.js View on Github external
constructor() {
    this.plugins = []
    RegisterConfigurationHook(project => {
      return new Promise(res => {
        Promise.all(
          this.plugins.map(plugin =>
            this.emitConfiguration(plugin, project).catch(_e => {
              return ''
            })
          )
        ).then(configs => res(configs.join('')))
      })
    })
  }