HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/node_modules/karma-phantomjs-launcher/capture.template.js
(function (phantom) {
  var page = require('webpage').create();

  <% if (exitOnResourceError) { %>
  page.onResourceError = function() {
    phantom.exit(1)
  }
  <% } %>

  <% _.forOwn(pageOptions, function(value, key) { %>
  page.<%= key %> = <%= value %>
  <% }) %>

  <% _.forOwn(pageSettingsOptions, function(value, key) { %>
  page.settings.<%= key %> = <%= value %>
  <% }) %>

  page.onConsoleMessage = function () {
      console.log.apply(console, arguments)
  }

  <% if (debug) { %>
  function debugPage() {
    console.log('Launch the debugger page at http://localhost:9000/webkit/inspector/inspector.html?page=2')

    var debuggerWait = 15000
    console.log('Waiting ' + (debuggerWait / 1000) + ' seconds for debugger page to launch...')

    var launchPage = function () {
      console.log('Launching page <%= url %>...')
      page.open('<%= url %>')
    }

    setTimeout(launchPage, 15000)
  }
  debugPage()
  <% } else { %>
  page.open('<%= url %>')
  <% } %>
}(phantom))