-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathBackendCapabilities.java
More file actions
60 lines (49 loc) · 1.69 KB
/
BackendCapabilities.java
File metadata and controls
60 lines (49 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.nordstrom.automation.selenium.grid;
public final class BackendCapabilities {
private final boolean dynamicPorts;
private final boolean managedNodes;
private final boolean gracefulShutdown;
private final boolean healthCheck;
private final boolean externalDiscovery;
public BackendCapabilities(boolean dynamicPorts,
boolean managedNodes,
boolean gracefulShutdown,
boolean healthCheck,
boolean externalDiscovery) {
this.dynamicPorts = dynamicPorts;
this.managedNodes = managedNodes;
this.gracefulShutdown = gracefulShutdown;
this.healthCheck = healthCheck;
this.externalDiscovery = externalDiscovery;
}
public boolean supportsDynamicPorts() { return dynamicPorts; }
public boolean supportsManagedNodes() { return managedNodes; }
public boolean supportsGracefulShutdown() { return gracefulShutdown; }
public boolean supportsHealthCheck() { return healthCheck; }
public boolean supportsExternalDiscovery() { return externalDiscovery; }
public static BackendCapabilities selenium3() {
return new BackendCapabilities(
true,
true,
false,
true,
true
);
}
public static BackendCapabilities selenium4() {
return new BackendCapabilities(
true,
true,
true,
true,
true
);
}
BackendCapabilities dockerCaps = new BackendCapabilities(
false,
false,
true,
true,
true
);
}