This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

Hi,

I have managed to successfully set up my java framework using Appium to test devices thanks to the help of several people on this site.

I now want to extend the framework so that it can test a website as well. Some tests will run on devices and some will run on web. No test will run on BOTH device and web - it is one of the other.

The way I have currently set this up is to create TWO different drivers as shown below:

public static AppiumDriver appDriver = null;
public static WebDriver webDriver = null;

I use the AppiumDriver for testing the devices and the WebDriver for testing web.

Is this the right way to do it or should I start off with ONE RemoteWebDriver and CAST it to AppiumDriver or WebDriver as required by the test?

Thanks
Matt