@@ -0,0 +1,1942 @@
+/*%0A * Copyright 2015 www.seleniumtests.com%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * http://www.apache.org/licenses/LICENSE-2.0%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.seleniumtests.browserfactory;%0A%0Aimport com.seleniumtests.driver.DriverConfig;%0Aimport org.openqa.selenium.remote.CapabilityType;%0Aimport org.openqa.selenium.remote.DesiredCapabilities;%0A%0A/**%0A * Sets iphone capabilities.%0A */%0Apublic class IPhoneCapabilitiesFactory implements ICapabilitiesFactory %7B%0A%0A    public DesiredCapabilities createCapabilities(final DriverConfig cfg) %7B%0A        DesiredCapabilities capabilities = new DesiredCapabilities();%0A%0A        capabilities.setCapability(%22automationName%22, cfg.getAutomationName());%0A        capabilities.setCapability(%22platformName%22, cfg.getMobilePlatformName());%0A%0A        // Set up version and device name else appium server would pick the only available emulator/device%0A        // Both of these are ignored for android for now%0A        capabilities.setCapability(%22platformVersion%22, cfg.getMobilePlatformVersion());%0A        capabilities.setCapability(%22deviceName%22, cfg.getDeviceName());%0A%0A        capabilities.setCapability(%22app%22, cfg.getApp());%0A        capabilities.setCapability(%22appPackage%22, cfg.getAppPackage());%0A        capabilities.setCapability(%22appActivity%22, cfg.getAppActivity());%0A%0A        capabilities.setCapability(CapabilityType.BROWSER_NAME, cfg.getBrowserName());%0A        capabilities.setCapability(%22newCommandTimeout%22, cfg.getNewCommandTimeout());%0A%0A        return capabilities;%0A    %7D%0A%7D%0A

Add IPhone capabilities factory