Skip to content

Commit e4f334e

Browse files
committed
[java] Deprecate CDP instance methods in FirefoxDriver
Related to #11736
1 parent 8225b28 commit e4f334e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

java/src/org/openqa/selenium/firefox/FirefoxDriver.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ public void setContext(FirefoxCommandContext commandContext) {
260260
context.setContext(commandContext);
261261
}
262262

263+
/**
264+
* @deprecated Use W3C-compliant BiDi protocol. Use {{@link #maybeGetBiDi()}}
265+
*/
266+
@Deprecated
263267
@Override
264268
public Optional<DevTools> maybeGetDevTools() {
265269
if (devTools != null) {
@@ -284,6 +288,9 @@ public Optional<DevTools> maybeGetDevTools() {
284288
return Optional.of(devTools);
285289
}
286290

291+
/**
292+
* @deprecated Use W3C-compliant BiDi protocol. Use {{@link #getBiDi()}}
293+
*/
287294
@Override
288295
public DevTools getDevTools() {
289296
if (!cdpUri.isPresent()) {

0 commit comments

Comments
 (0)