Become Free
--Stores current license
--Applies Free license
--Restarts server
openAndWait / (open the main interface)
setTimeout 120000
comment Wait for page to load up
pause 1000
waitForDispatchCompleted 30000
comment Click the admin link
clickAndWait adminLink
selectWindow queryFetcher (hereafter, all selenium commands will act within the context of this iframe
comment Click license link
clickAndWait //a[@href='/admin/license']
comment Click edit license link
clickAndWait //input[@type='button']
comment store the currently enabled license
storeText //textarea[@name='key'] licenseKey
type //textarea[@name='key'] freelicense;m9LkX5oOpeie+8cCsRg9fdmI6H/A1v0LQUkHx/0SsJMxsy9dXrAcNMgjxcU8j7crCR6tdewuozjNLsGRbPXWMoQf6f5etIIYHNo/WwH/3bJ04qJiq6GikRjg8ySqjcwvaSMLGS4a3CxHtKOwivqCZ+uS1wuiKaYSSZu5DYJMCfO6eAg1xvBQ+VOSmDW3NSVpFKiImrYwmeNqNyDHgaNKCZoF6h5WMYslpk7taF1cdLCaq3tvqwnPXqVGfK9Q+CnA3/vynnA+5WWcFH6fiTgI8nYFUYayb1s5FqjKCOjDpgDsLdLtpOQsEqxJbLFoPPP1tfv8KVKS0NfzZHYZkyNLXA==
clickAndWait //input[@value='Save']
verifyConfirmation Are you sure you want to switch to a new license?
clickAndWait //a[@href='/admin/settings/control']
clickAndWait //input[@value='Restart Now']
pause 5000
comment give control back to the main window.
selectWindow
comment wait for the login page to do it's checking for updates thing.