From f24f2d15275961f1c0144e68fde75a60aeaaa165 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Mon, 23 Jan 2023 22:20:47 -0500 Subject: move to bear theme --- ...10-28-so-you-want-to-click-that-button.markdown | 58 ---------------------- 1 file changed, 58 deletions(-) delete mode 100644 content/post/2008-10-28-so-you-want-to-click-that-button.markdown (limited to 'content/post/2008-10-28-so-you-want-to-click-that-button.markdown') diff --git a/content/post/2008-10-28-so-you-want-to-click-that-button.markdown b/content/post/2008-10-28-so-you-want-to-click-that-button.markdown deleted file mode 100644 index ce810f9..0000000 --- a/content/post/2008-10-28-so-you-want-to-click-that-button.markdown +++ /dev/null @@ -1,58 +0,0 @@ ---- -title: "So you want to click that button?" -date: 2008-10-28T21:05:00Z -comments: false -url: /post/56866975/so-you-want-to-click-that-button -tags: ---- - - - -I stumbled upon[http://clickthatbutton.com](http://clickthatbutton.com) during my routine lurking of[hacker news](http://news.ycombinator.com) . After being amused for about 10 seconds,  I decided to take it to the next level; I wanted to click on it really, really fast. After going through a few solutions (simple js while loop in firebug, then curl/wget) and failing, the idea of using selenium popped into my head. So I went off to their[site](http://selenium-ide.openqa.org/download.jsp) and installed the extension. I figured a simple recording of the mouse event, then wrapping it around a loop in selenium would do the trick, but I quickly found that selenium doesn’t support loops. Not to be stopped, I searched google and ended up with[this](http://51elliot.blogspot.com/2008/02/selenium-ide-goto.html) . After installing the plugin for selenium (a plugin for a plugin!?) and restarting firefox, I tried it again and to my surprise it worked! The click counter was going up steadily on its own (18k clicks and counting). Here is my selenium test case for those of you following along: - -```html - - - - - - -haha - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
haha
open/
storex1
whilestoredVars['x'] == storedVars['x']
clicksubmit
endWhile
- - -``` - -Just paste that into a file, open it with selenium ide, hit play and you should be good to go. -- cgit v1.2.3