Skip to content

timCF/megaclicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Megaclicker

This awesome console util is just for testing web applications. It do only one thing - open webpages and randomly clicks required area required time, in the end do screenshot and save it to "screenshots" dir. System requirements:

  • Linux or Mac OS
  • Google Chrome browser and Chrome Driver
  • If you want set page resolution - turn off your tile manager (i3, xmonad, amethyst etc)

For example, how to install Google Chrome and Chrome Driver on debian:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable

sudo apt-get install unzip
wget http://chromedriver.storage.googleapis.com/2.9/chromedriver_linux64.zip
unzip ./chromedriver_linux64.zip
chmod +x ./chromedriver
sudo mv -f ./chromedriver /usr/local/share/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver

There are binary releases for Linux and Mac, you can run them like this:

./start.sh --url http://www.cake23.de/traveling-wavefronts-lit-up.html --x-res 1024 --x-from 512 --x-to 1024 --y-res 1024 --y-from 512 --y-to 1024 --threads 2 --ttl 120
./start.sh --url http://armsglobe.chromeexperiments.com/ --elem-type id --elem-selector visualization --threads 2 --ttl 120
./start.sh --url http://dan.forys.uk/experiments/mesmerizer/ --elem-type id --elem-selector pixelCanvas --threads 2 --ttl 120

Or you can use loop:

./loop.sh --url http://dan.forys.uk/experiments/mesmerizer/ --elem-type id --elem-selector pixelCanvas --threads 2 --ttl 120

I think its possible to run it headless with xvfb, but this feature was not tested:

xvfb-run ./loop.sh --url http://dan.forys.uk/experiments/mesmerizer/ --elem-type id --elem-selector pixelCanvas --threads 2 --ttl 120

About

console clicker for your web applications

Resources

Stars

Watchers

Forks

Packages

No packages published