File tree 1 file changed +6
-3
lines changed
java/client/src/org/openqa/selenium/safari
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,9 @@ public static SafariOptions fromCapabilities(Capabilities capabilities)
108
108
* @param port The port the {@link SafariDriverService} should be started on,
109
109
* or 0 if the server should select a free port.
110
110
*/
111
- public void setPort (int port ) {
111
+ SafariOptions setPort (int port ) {
112
112
this .port = port ;
113
+ return this ;
113
114
}
114
115
115
116
/**
@@ -122,8 +123,9 @@ public void setPort(int port) {
122
123
*
123
124
* @param useCleanSession If true, the SafariDriver will erase all existing session data.
124
125
*/
125
- public void setUseCleanSession (boolean useCleanSession ) {
126
+ public SafariOptions setUseCleanSession (boolean useCleanSession ) {
126
127
this .useCleanSession = useCleanSession ;
128
+ return this ;
127
129
}
128
130
129
131
/**
@@ -133,8 +135,9 @@ public void setUseCleanSession(boolean useCleanSession) {
133
135
* @param useTechnologyPreview If true, the SafariDriver will use the Safari Technology Preview,
134
136
* otherwise will use the release version of Safari.
135
137
*/
136
- public void setUseTechnologyPreview (boolean useTechnologyPreview ) {
138
+ public SafariOptions setUseTechnologyPreview (boolean useTechnologyPreview ) {
137
139
this .useTechnologyPreview = useTechnologyPreview ;
140
+ return this ;
138
141
}
139
142
140
143
// Getters
You can’t perform that action at this time.
0 commit comments