This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| //import the selenium web driver | |
| var webdriver = require('selenium-webdriver'); | |
| var chromeCapabilities = webdriver.Capabilities.chrome(); | |
| //setting chrome options to start the browser fully maximized | |
| var chromeOptions = { | |
| 'args': ['--test-type', '--start-maximized'] | |
| }; | |
| chromeCapabilities.set('chromeOptions', chromeOptions); | |
| var driver = new webdriver.Builder().withCapabilities(chromeCapabilities).build(); |
| class FlipCounterView extends KDView | |
| constructor : (options = {}, data = {}) -> | |
| options.style ?= "dark" | |
| options.from ?= 5000 | |
| options.to ?= 10000 | |
| options.interval ?= 1000 | |
| options.step ?= 1 | |
| options.autoStart ?= yes | |
| options.direction = if options.from < options.to then "up" else "down" | |
| options.digits ?= if options.direction is "up" then options.to.toString().length else options.from.toString().length |
| var tags = {}; | |
| $("*").each(function(item) { | |
| if (!tags[this.tagName]) { | |
| tags[this.tagName] = 0; | |
| } | |
| tags[this.tagName]++; | |
| }); | |
| console.dir(tags); |
| var fio = {}; | |
| fio.deneme = function(xxx){ | |
| alert(xxx); | |
| } | |
| var oldfunction = fio.deneme; | |
| fio.deneme = function(){ |