JTAF-ExtWebDriver icon indicating copy to clipboard operation
JTAF-ExtWebDriver copied to clipboard

Make Element Pluggable

Open mmlinford opened this issue 10 years ago • 4 comments

Make the Element base class pluggable so that customizations can be made without having to override it.

mmlinford avatar Jul 19 '14 15:07 mmlinford

I think this is not so easy to realize. What is the issue you have with element?

opensource21 avatar Aug 13 '14 12:08 opensource21

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.

kood1 avatar Aug 13 '14 19:08 kood1

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.

mmlinford avatar Aug 15 '14 22:08 mmlinford

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.

opensource21 avatar Aug 16 '14 06:08 opensource21