JS Automation testing review
Requirements
- selenium-server-standalone-2.x.x.jar from the Selenium releases page: https://selenium-release.storage.googleapis.com/index.html
- Node - https://nodejs.org/en/
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<script> | |
var app = { |
const gulp = require('gulp'); | |
const babel = require('gulp-babel'); | |
// default task set to auto-watch. | |
gulp.task('default', function () { | |
gulp.watch('js/*', ['babel']); | |
}); | |
// babel task | |
gulp.task('babel', function () { |
JS Automation testing review
Requirements
var | |
//modules | |
gulp = require('gulp'), | |
// css modules | |
sass = require('gulp-sass'), | |
postcss = require('gulp-postcss'), | |
assets = require('postcss-assets'), | |
autoprefixer = require('autoprefixer'), | |
mqpacker = require('css-mqpacker'), | |
cssnano = require('cssnano'); |
function fizz(i){ | |
var divBy3 = i % 3 === 0; | |
var divBy5 = i % 5 === 0; | |
if (divBy3 && divBy5) { | |
return "fizzBuzz"; | |
} else if (divBy3) { | |
return "fizz"; | |
} else if (divBy5){ |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script> | |
<style> | |
.weatherDesc {display:none;} |