DESCRIPTION
This is a custom-made subclass to My::Module::Build that knows how to build Alien::Selenium. Its package name is a nonce chosen by Module::Build.
COMMAND-LINE OPTIONS
--selenium-version <version>
The Selenium version that one wishes to package. By default, will use whatever is the current value of the variable $SELENIUM_VERSION in Alien::Selenium's source code.
INTERNAL METHODS
ACTION_code
Overloaded from Module::Build so as to also "fetch_selenium", "extract_selenium" and/or "install_selenium".
process_pm_files
Overloaded from parent class so as to reserve a special treatment to Alien::Selenium; namely, the value of $SELENIUM_VERSION is changed in place to reflect that of the --selenium-version command-line switch.
fetch_selenium
As the name implies, fetches Selenium over the interweb. Does nothing if the Selenium zipball is already here.
extract_selenium
Unpacks the Selenium zipball.
install_selenium
Copies select bits of the unpacked copy of Selenium into blib/lib/, so that they get embedded into the Alien::Selenium Perl package.
UTILITY METHODS
selenium_archive_basename()
Returns the basename of the Selenium zipball with version number, e.g. selenium-0.x
or selenium-core-0.x
selenium_archive()
Returns the full name of the Selenium zipball, e.g. selenium-0.x.zip
selenium_url()
Returns the URL that we should attempt to fetch the Selenium tarball from.
selenium_directory()
Returns the directory in which Selenium is (to be) unpacked. Grovels around a bit looking for already existing directories, and returns "selenium_archive_basename" if none is found.