Skip to content

Instantly share code, notes, and snippets.

View isummation's full-sized avatar

iSummation INC isummation

View GitHub Profile
this.test.assertExists(
{type: 'xpath', path: '//select[@id="countryid"]'},
'the element Country exists'
);
this.test.assertExists(
{type: 'xpath', path: '//input[@id="firstname"]' },
'the first name element exists'
);
this.test.assertExists(
'form[id="frmsignup"]',
siteName + ' has a form with name "frmsignup"'
);
this.test.assertTitle(
'Fear Ticket',
siteName + ' has the correct title'
);
casper.start(url, function() {
this.test.assert(this.getCurrentUrl() === url, 'url is the one expected');
this.test.assertHttpStatus(200, siteName + ' is up');
});
casper.test.comment('Starting Testing');
var casper = require('casper').create({
verbose: false,
logLevel: 'debug'
});
<cfscript>
var FileUtils = createObject("java","org.apache.commons.io.FileUtils");
var WordprocessingMLPackage = createObject("java","org.docx4j.openpackaging.packages.WordprocessingMLPackage");
var NumberingDefinitionsPart = createObject("java","org.docx4j.openpackaging.parts.WordprocessingML.NumberingDefinitionsPart");
<cfheader name="Content-Disposition" value="inline; filename=ExportMsWord.doc" charset="utf-8">
<cfcontent type="application/msword; charset=utf-8">
<h2 align="center">
<span>Download Word Document</span>
</h2>
<table cellspacing="0" cellpadding="0" border="1">
const _config = require('../config');
const sql = require('mssql');
var GoogleMapService = {};
GoogleMapService.init = async function() {
try {
GoogleMapService.googleMapsClient = require('@google/maps').createClient({
key: _config.GoogleMapKey,