content: package com.tmb.driver.manager.mobile.remote.saucelabs;
  
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.remote.DesiredCapabilities;
  import org.openqa.selenium.remote.RemoteWebDriver;
  
  import static com.tmb.config.factory.SauceLabsConfigFactory.getConfig;
  
  public final class SauceLabsIosManager {
  
    private SauceLabsIosManager() {
    }
  
    public static WebDriver getDriver() {
      DesiredCapabilities capabilities = new DesiredCapabilities();
      capabilities.setCapability("platformName", "iOS");
      capabilities.setCapability("appium:platformVersion", "15.0");
      capabilities.setCapability("appium:deviceName", "iPhone .*");
      capabilities.setCapability("appium:orientation", "portrait");
      capabilities.setCapability("appium:app", "storage:filename=<file-name>");
      DesiredCapabilities sauceOptions = new DesiredCapabilities();
      sauceOptions.setCapability("username", getConfig().userName());
      sauceOptions.setCapability("accessKey", getConfig().key());
      capabilities.setCapability("sauce:options", sauceOptions);
      return new RemoteWebDriver(getConfig()
                                   .sauceLabsURL(), capabilities);
    }
  }
  