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
import fs from 'fs' | |
var path = require('path'); | |
const FileHound = require('filehound'); | |
import { project as projectProcessor } from '@seleniumhq/side-utils' | |
import { emitTest, emitSuite } from '@seleniumhq/code-export-java-junit' | |
const filesPath = '.' // path to the folder containing SIDE files | |
const downloadPath = path.join(filesPath,'Junit') // Will by default create a JUnit folder in {filesPath} | |
const filesType = 'side' | |
function readFile(file) { |
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 evnts = ["click", "focus", "blur", "keyup", "keydown", "keypressed"]; | |
// You can also Use mouseup/down, mousemove, resize and scroll | |
for (var i = 0; i < evnts.length; i++) { | |
window.addEventListener("" + evnts[i] + "", function (e) { | |
myFunction(e); | |
}, false); | |
} | |
function myFunction(e) { | |
var evt = e || window.event; |