diff --git a/java/src/org/openqa/selenium/bidi/Browser.java b/java/src/org/openqa/selenium/bidi/Browser.java index f9b819534f050..6cbd326fc5155 100644 --- a/java/src/org/openqa/selenium/bidi/Browser.java +++ b/java/src/org/openqa/selenium/bidi/Browser.java @@ -61,11 +61,7 @@ public List getUserContexts() { return bidi.send(new Command<>("browser.getUserContexts", Map.of(), userContextsInfoMapper)); } - public String removeUserContext(String userContext) { - return bidi.send( - new Command<>( - "browser.removeUserContext", - Map.of("userContext", userContext), - userContextInfoMapper)); + public void removeUserContext(String userContext) { + bidi.send(new Command<>("browser.removeUserContext", Map.of("userContext", userContext))); } }