×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    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.

    <HighlightSyntax>

    1. !/bin/bash
    2. make a file to be fed to Selenium http://dynamitemap.com/selenium/
    3. to automatically create wiki pages from Jargon file
    4. http://s23.org/wiki/Jargon_File | http://s23.org/wiki/JargonExtension

    IFS=$'\n'

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

    jfile="~/jargon.info"

    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>

    <thead>

    </thead><tbody>"


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

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

    </body> </html>"

    </HighlightSyntax>

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.