#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
| 'use strict' | |
| var sqlite = require('sqlite3').verbose(); | |
| var db = new sqlite.Database('test_db'); | |
| db.getAsync = function (sql) { | |
| var that = this; | |
| return new Promise(function (resolve, reject) { | |
| that.get(sql, function (err, row) { | |
| if (err) |
| 'use strict'; | |
| /******************************************************************************/ | |
| console.log('Requiring modules...'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const readline = require('readline'); | |
| const exec = require('child_process').execFile; | |
| const execSync = require('child_process').execFileSync; | |
| const jsdom = require('jsdom'); |
| 'use strict'; | |
| /******************************************************************************/ | |
| console.log('Requiring modules...'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const readline = require('readline'); | |
| const execSync = require('child_process').execFileSync; | |
| const urlParser = require('url'); | |
| const jsdom = require('jsdom'); |
#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">