JTAF-ExtWebDriver
JTAF-ExtWebDriver copied to clipboard
Make Element Pluggable
Make the Element base class pluggable so that customizations can be made without having to override it.
I think this is not so easy to realize. What is the issue you have with element?
I believe this would allow users to provide their own implementation of Element class so that they can override methods with custom implementation without the need to extend Element class which results in doing the same for all the other widget classes. So, it would be nice if we can set a bean, for instance, which has the custom implementation of IElement interface and ExtWebDriver can now use this implementation instead of default.
Daniel's description is correct. I probably should have included InteractiveElement in the description too, since that's what I'm most concerned with (specifically what happens when an element is clicked). We actually did make good progress at the hack-a-thon.
OK, you want to change method implementation, I thought about new methods. That can easily be done, if the Session deliver an IElement and the base-class just delegates. I think it would be a good point for a redesign. At the moment we have the problem, that it's possible that someone cast to Element.