Skip to content

Instantly share code, notes, and snippets.

@axemclion
Created September 7, 2015 02:23
Show Gist options
  • Select an option

  • Save axemclion/72c8c1cc6b506df62b01 to your computer and use it in GitHub Desktop.

Select an option

Save axemclion/72c8c1cc6b506df62b01 to your computer and use it in GitHub Desktop.
Perfjankie - Scrolling custom element
var perfjankie = require('perfjankie');
var browserperf = require('perfjankie/node_modules/browser-perf');
perfjankie({
'url': 'http://localhost:8080',
'browsers': [{
'browserName': 'chrome'
}],
'selenium': 'http://localhost:9515',
'couch': {
'server': 'http://localhost:5984',
'database': 'test_table_view',
},
'log': console.log.bind(console),
'actions': [browserperf.actions.scroll({
scrollElement: 'document.getElementsByClassName("myclass")[0]'
})]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment