This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var redline = require( 'redline13-webdriver' ); | |
var browser = redline.loadBrowser('chrome'); | |
var By = redline.webdriver.By; | |
var until = redline.webdriver.until; | |
goto( "https://www.runsignup.com", "RunSignUp" ); | |
sendKeys(By.name("name"),"scott coffee"); | |
clickToTitle(By.xpath("/html/body/div[4]/section[1]/div/div[2]/div/form/div/button"), "Find a Race") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// include redline | |
var redline = require( 'redline13-webdriver' ); | |
// load your driver via redline13 | |
// redline13 library uses standard mechanism but presets some capabilities | |
var browser = redline.loadBrowser('chrome'); | |
// You can require webdriver yourself or use redline13.webdriver | |
var By = redline.webdriver.By; | |
var until = redline.webdriver.until; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var redline = require( 'redline13-webdriver' ); | |
// For local testing | |
var browser = redline.loadBrowser('chrome'); | |
// var browser = redline.loadBrowser('phantomjs'); | |
var By = redline.webdriver.By; | |
var until = redline.webdriver.until; | |
var defaultWait = 10000; | |
var baseUrl = "http://simplecms-450361855.us-east-1.elb.amazonaws.com/cmsmadesimple/"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var redline = require( 'redline13-webdriver' ); | |
var browser = redline.loadBrowser('phantomjs'); | |
var By = redline.webdriver.By; | |
var until = redline.webdriver.until; | |
goto( "https://www.runsignup.com", "RunSignUp" ); | |
clickToTitle( By.linkText( "RACES" ), "Search Races" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LoadTestingSession = require("./loadTestingSession.js"); | |
var fs = require('fs'); | |
var readline = require('readline'); | |
function ReplayJson(redlineApi, testNum, rand, config) | |
{ | |
// Redline API | |
this.redlineApi = redlineApi; | |
// Test info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aws = require('aws-sdk'); | |
var fs = require("fs"); | |
var Promise = require("es6-promise").Promise; | |
/** | |
* Load Configuration from local file or from DynamoDB. | |
*/ | |
var loadConfig = function(){ | |
return new Promise( function(resolve, reject) { |