Framework for Selenium and Appium

Hi Guys,

We have built a framework for selenium and now we are trying to integrate appium libraries in that framework. What we are trying is, to build a custom driver which will invoke either webdriver or appiumdriver based on some config file.
After the respective driver is invoked we will try to utilize the driver specific elements class, i.e. MobileElement or WebElement.

So we are having trouble as how can we create such a custom driver class. Is anyone using such a framework where Appium and Selenium both are working in sync.

Please reply if anyone have any answer.