private static WiniumDriverService CreateDefaultService(Type optionsType, string directory)
        {
            if (optionsType == typeof(DesktopOptions))
            {
                return(WiniumDriverService.CreateDesktopService(directory));
            }

            if (optionsType == typeof(StoreAppsOptions))
            {
                return(WiniumDriverService.CreateStoreAppsService(directory));
            }

            if (optionsType == typeof(SilverlightOptions))
            {
                return(WiniumDriverService.CreateSilverlightService(directory));
            }

            throw new ArgumentException(
                      "Option type must be type of DesktopOptions, StoreAppsOptions or SilverlightOptions",
                      "optionsType");
        }