Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public class IOSSettings {
@Getter @Setter private String defaultIOSVersion;
@Getter @Setter private Boolean downloadDemoApps;
@Getter @Setter private String serviceUrl;
@Getter @Setter private String deviceIdentifier;

@Getter @Setter private List<GridSettings> gridSettings;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class TimeoutSettings {
@Getter @Setter private long elementWaitTimeout;
@Getter @Setter private long sleepInterval;
@Getter @Setter private long validationsTimeout;
@Getter @Setter private long webviewConnectTimeout;
@Getter @Setter private long elementToBeVisibleTimeout;
@Getter @Setter private long elementToExistTimeout;
@Getter @Setter private long elementToNotExistTimeout;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ private static IOSDriver initializeDriverGridMode(GridSettings gridSettings) {
caps.setAutomationName(AutomationName.IOS_XCUI_TEST);
caps.setPlatformVersion(getAppConfiguration().getIosVersion());
caps.setDeviceName(getAppConfiguration().getDeviceName());
caps.setUdid(ConfigurationService.get(IOSSettings.class).getDeviceIdentifier());
caps.setWebviewConnectTimeout(Duration.ofSeconds(ConfigurationService.get(IOSSettings.class).getTimeoutSettings().getWebviewConnectTimeout()));

try {
var driver = new IOSDriver(new URL(gridSettings.getUrl()), caps);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"defaultDeviceName": "iPhone 6",
"defaultIosVersion": "11.3",
"defaultBrowser": "Safari",
"deviceIdentifier": "4005808588763",
"defaultAppPath": "${user.home}/TestApp.app.zip",
"artificialDelayBeforeAction": "0",
"automaticallyScrollToVisible": "false",
Expand All @@ -22,6 +23,7 @@
"elementWaitTimeout": "30",
"sleepInterval": "1",
"waitForPartialUrl": "30",
"webviewConnectTimeout": 60,
"validationsTimeout": "30",
"elementToBeVisibleTimeout": "30",
"elementToExistTimeout": "30",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"defaultDeviceName": "iPhone 6",
"defaultIosVersion": "11.3",
"defaultBrowser": "Safari",
"deviceIdentifier": "4005808588763",
"defaultAppPath": "${user.home}/TestApp.app.zip",
"artificialDelayBeforeAction": "0",
"automaticallyScrollToVisible": "false",
Expand All @@ -21,6 +22,7 @@
"implicitWaitTimeout": "5",
"elementWaitTimeout": "30",
"sleepInterval": "1",
"webviewConnectTimeout": 60,
"waitForPartialUrl": "30",
"validationsTimeout": "30",
"elementToBeVisibleTimeout": "30",
Expand Down