File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
src/test/java/io/appium/java_client/pagefactory_tests/widget/tests Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 11
11
import org .openqa .selenium .logging .Logs ;
12
12
import org .openqa .selenium .remote .Response ;
13
13
14
+ import java .time .Duration ;
14
15
import java .util .HashSet ;
15
16
import java .util .List ;
16
17
import java .util .Map ;
@@ -155,11 +156,25 @@ public Cookie getCookieNamed(String name) {
155
156
@ Override
156
157
public Timeouts timeouts () {
157
158
return new Timeouts () {
158
- @ Override
159
+ /**
160
+ * Does nothing.
161
+ *
162
+ * @param time The amount of time to wait.
163
+ * @param unit The unit of measure for {@code time}.
164
+ * @return A self reference.
165
+ * @deprecated Kept for the backward compatibility, should be removed when a minimum Selenium
166
+ * version is bumped to 4.33.0 or higher.
167
+ */
168
+ @ Deprecated
159
169
public Timeouts implicitlyWait (long time , TimeUnit unit ) {
160
170
return this ;
161
171
}
162
172
173
+ @ Override
174
+ public Timeouts implicitlyWait (Duration duration ) {
175
+ return this ;
176
+ }
177
+
163
178
@ Override
164
179
public Timeouts setScriptTimeout (long time , TimeUnit unit ) {
165
180
return this ;
You can’t perform that action at this time.
0 commit comments