-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
IMHO the AnnotationLibrary should inject its instance to the created keyword class instances. At the moment we have to use an ugly static member variable for that:
public class Selenium2Library extends
org.robotframework.javalib.library.AnnotationLibrary {
/**
* The last created instance of this library. Since the scape of this
* library is GLOBAL and RobotFramework executes all tests single
* threaded, this is ok.
*/
protected static Selenium2Library instance;
public Selenium2Library() {
super(keywordPatterns);
instance = this;
}
}Any thoughts about that?
Thumbs up for your great work,
Markus
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels