Woah, please disregard that last post. Here is the more proper way that works across both the Python and Java versions where applicable...
${selenium2library}= Get Library Instance Selenium2Library
${selenium2library version}= Set Variable ${selenium2library.ROBOT_LIBRARY_VERSION}
From Python/Jython:
from robot.libraries.BuiltIn import Builtin
def get_selenium2library_version():
return BuiltIn.get_library_instance('Selenium2Library').__version__
From Java:
import Selenium2Library;
public SomeClass {
public String getSelenium2LibraryVersion() {
return Selenium2Library.ROBOT_LIBRARY_VERSION;
}
}