Wednesday, 24 June 2009

Selenium IDE

Just a quick post to say that if any of you out there spend your day resizing and moving Selenium IDE after reopening it (it doesn't remember the previous window state), you can write a little script to do it for you using the handy 'wmctrl' :)

(on linux)
wmctrl -r 'Mozilla Firefox' -e 0,0,25,1330,1125
wmctrl -r "Mozilla Firefox" -b remove,maximized_vert,maximized_horz
wmctrl -a 'Mozilla Firefox'
wmctrl -r 'Selenium IDE' -e 0,1350,25,575,1125
wmctrl -a 'Selenium IDE'



The snippet above moves, unmaximises and raises firefox before moving and activiating the Selenium IDE.

3 comments:

Tom said...

Some of us have to use windows at our jobs, you insensitive clod! Oh, the pain...

Gus Power said...

I used to use 'ScriptIt' on windows to do similar stuff (a long time ago!). Looks like it's been superseded by the freeware AutoIt (http://www.autoitscript.com/autoit3/). Go crazy :)

max said...

oh dear tom. feeling so sad for you :). At least some FOOL won't come along and do a recursive chmod on the root of your pc (thanks Jerome).