Skip to content

Commit

Permalink
[java] Deprecate CDP instance methods in FirefoxDriver
Browse files Browse the repository at this point in the history
Related to #11736
  • Loading branch information
pujagani committed Mar 6, 2023
1 parent 8225b28 commit e4f334e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions java/src/org/openqa/selenium/firefox/FirefoxDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ public void setContext(FirefoxCommandContext commandContext) {
context.setContext(commandContext);
}

/**
* @deprecated Use W3C-compliant BiDi protocol. Use {{@link #maybeGetBiDi()}}
*/
@Deprecated
@Override
public Optional<DevTools> maybeGetDevTools() {
if (devTools != null) {
Expand All @@ -284,6 +288,9 @@ public Optional<DevTools> maybeGetDevTools() {
return Optional.of(devTools);
}

/**
* @deprecated Use W3C-compliant BiDi protocol. Use {{@link #getBiDi()}}
*/

This comment has been minimized.

Copy link
@diemol

diemol Mar 6, 2023

Member

Maybe missed a @Deprecated below?

This comment has been minimized.

Copy link
@pujagani

pujagani Mar 8, 2023

Author Contributor

Oops! Thank you for pointing it out. I have fixed it.

@Override
public DevTools getDevTools() {
if (!cdpUri.isPresent()) {
Expand Down

0 comments on commit e4f334e

Please sign in to comment.