From s23
Jump to navigation Jump to search

Selenium IDE is a Firefox extension to automate browsing tasks. It is intercepting browser actions and can record and playback them.

Use Selenium to automatically create wiki pages[edit]

In order to automatically add all the missing jargon pages, i made this bash script which creates output to be fed to Selenium:

The output of this could then be loaded into Selenium and when i click "Play" my Firefox starts creating all those pages you see in RC recently.


  1. !/bin/bash
  2. make a file to be fed to Selenium
  3. to automatically create wiki pages from Jargon file
  4. |


  1. Use Jargon file Version 4.0.0
  2. (used by vh and jargon package per default)
  3. cp /usr/share/info/ ~
  4. gunzip ~/


  1. Use Jargon file Version 4.4.7
  2. (also comes with the package but ignored by package provider cause renders some sections unreadable)
  3. read /usr/share/doc/jargon-text/README.Debian and /usr/share/doc/jargon/README.Debian
  4. jfile="/usr/share/vh/jargon.txt"

echo -e "<html> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"> <title>jargon</title> </head> <body>



for entry in `grep ^: /usr/share/vh/jargon.txt | cut -d : -f2` do title=`echo $entry | tr " " "_"` echo -e "

" done echo -e " </tbody>
open /w/index.php?title=$title&action=edit
type wpTextbox1 <jargon />
clickAndWait wpSave

</body> </html>"