Status: Accepted
Owner: pekka.klarck
Labels: Type-Enhancement Priority-High Target-2.5.2
New issue 622 by pekka.klarck: Possibility to interact with other active
libraries via `Get Libray Instance` keyword
http://code.google.com/p/robotframework/issues/detail?id=622
Sometimes libraries need to interact with other libraries. If the library
has no state this is as easy as importing the library class (or module),
creating and instance of it, and using it normally in the code. This
doesn't work if the library has a state, however, because the framework
will itself import the library and crate its own instance of it. What is
needed is a way to get an access to the library instance the framework uses.
The current library instance is relatively easily available inside the
framework, and we just need to expose it via some public, and stable, API.
The easiest way to accomplish this is adding new `Get Library Instance`
keyword to BuiltIn. The functionality would typically be used by other
libraries, but having it available as a keyword allows passing the returned
instance also to Java libraries that cannot import BuiltIn easily.