-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Common base class #1
Comments
One thing to decide is what functionality to move into the possible new RobotLibraryCore base class. Possible solutions:
Do I @aaltat remember correctly that 3. would be problematic to SeleniumLibrary? In that case I guess it's best to go with 2. |
Hmmm, I have this feeling that there was something, but I can not recall what that actually was. Also could not find anything by randomly looking at the SL code. I recall that we did have problem, when |
Well, The problem you mentioned was most likely #2 and it was fixed on this side in 0559e5c. |
That was the problem what was lurking in my mind. |
And it confirms option 3 is not a good idea. |
Currently both
DynamicCore
andStaticCore
extendHybridCore
. This is a bit strange inheritance hierarchy in general, but it's especially stupid to check does a library extend any of these by usingisinstance(library, HybridCore)
. It would be better to have a common base class namedLibraryCore
orRobotLibraryCore
that all concrete lib cores extend. It would allow usingisinstance(library, RobotLibraryCore)
.Until this common base class is implemented, it's probably best to use
isinstance(library, (HybridCore, DynamicCore, StaticCore))
with any generic code. That's both more explicit than just usingisinstance(library, HybridCore)
and also works if and when other cores don't anymore extendHybridCore
.The text was updated successfully, but these errors were encountered: