public void setup() {
DeviceType deviceType = caps.getDevice();
IOSRunningApplication application = session.getApplication();
String locale = caps.getLocale();
String language = caps.getLanguage();
IOSVersion instrumentsVersion = new IOSVersion(info.getInstrumentsVersion().getVersion());
boolean instrumentsIs50OrHigher = instrumentsVersion.isGreaterOrEqualTo("5.0");
boolean putDefaultFirst = instrumentsIs50OrHigher;
simulatorSettings.setSimulatorScale(caps.getSimulatorScale());
if (!instrumentsVersion.isGreaterOrEqualTo("6.0")) {
application.setDefaultDevice(deviceType, putDefaultFirst);
}
if (!caps.getReuseContentAndSettings()) {
simulatorSettings.resetContentAndSettings();