code: function asyncScreenshot(name, path) {
        var rect, offset, clientRect;
        var assert = QUnit.config.current.assert,
            done   = assert.async();
  
        // pause test for 300ms for rendering purposes
        window.setTimeout(function() {
          // Hide dom element specified by each item in exclude array
          excludeElements(exclude);
  
          // bubbling to phantomjs to trigger screenshot event
          window.PhantomScreenshot(name, {
            path: path,
            rect: getOffset(selector)
          });
  
          // Let QUnit know it's done
          done();
        }, 300);
      }
docs: Calculate offset of selector (if exists),
  Hide any dom element that is included in the exclude array
  Calls PhantomScreenshot with passed options
  
  @param {String} name - name of the screenshot image