Skip to content

[Enhancement] Spring configuration, beans and aspects vs EventFiringWebdriver  #242

Description

@TikhomirovSergey

The Selenium project has an interesting solution,
EventFiringWebDriver:

Everything is cool but I think there are disadvantages for Appium users:

  • this implementation restricts the using of mobile-specific functions till
AppiumDriverd = (AppiumDriver) eventFiringWebDriver.getWrappedDriver();

The same is true for elements

MobileElemente = (MobileElement) ((WrapsElement) element).getWrappedDriver();
  • almost all interfaces which are nested in WebDriver has protected/private implementations here. So an end user has to duplicate the present code when there is need to extend it

What is supposed to be designed:

  • it is supposed that the WebDriverEventListener interface will be reused. Also it would be cool if there were interfaces whose implementations allow to listen to (optionally) events of alerts, windows, contexts and so on.
  • To design a solution which has linear architecture. It would be cool to use Spring & AspectJ here.
    http://www.mkyong.com/spring3/spring-aop-aspectj-annotation-example/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions