Skip to content

Commit 2cdda1f

Browse files
committed
[java] Deprecating IME
[skip ci]
1 parent 8bcf64c commit 2cdda1f

5 files changed

Lines changed: 22 additions & 7 deletions

File tree

java/src/org/openqa/selenium/ImeActivationFailedException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
/**
2121
* Indicates that activating an IME engine has failed.
22+
*
23+
* @deprecated Will be removed. IME is not part of W3C WebDriver and does not work on browsers.
2224
*/
2325
public class ImeActivationFailedException extends WebDriverException {
2426
public ImeActivationFailedException(String message) {

java/src/org/openqa/selenium/ImeNotAvailableException.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
/**
2121
* Indicates that IME support is not available. This exception is thrown for every IME-related
2222
* method call if IME support is not available on the machine.
23+
*
24+
* @deprecated Will be removed. IME is not part of W3C WebDriver and does not work on browsers.
2325
*/
26+
2427
public class ImeNotAvailableException extends WebDriverException {
2528
public ImeNotAvailableException(String message) {
2629
super(message);

java/src/org/openqa/selenium/WebDriver.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ interface Options {
277277

278278
/**
279279
* @return the interface for controlling IME engines to generate complex-script input.
280+
* @deprecated Will be removed. IME is not part of W3C WebDriver and does not work on browsers.
280281
*/
281282
ImeHandler ime();
282283

@@ -633,6 +634,7 @@ interface Navigation {
633634
}
634635

635636
/**
637+
* @deprecated Will be removed. IME is not part of W3C WebDriver and does not work on browsers.
636638
* An interface for managing input methods.
637639
*/
638640
interface ImeHandler {

java/src/org/openqa/selenium/remote/RemoteWebDriver.java

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717

1818
package org.openqa.selenium.remote;
1919

20-
import static java.util.Collections.singleton;
21-
import static java.util.concurrent.TimeUnit.SECONDS;
22-
import static org.openqa.selenium.remote.CapabilityType.LOGGING_PREFS;
23-
import static org.openqa.selenium.remote.CapabilityType.PLATFORM;
24-
import static org.openqa.selenium.remote.CapabilityType.PLATFORM_NAME;
25-
import static org.openqa.selenium.remote.CapabilityType.SUPPORTS_JAVASCRIPT;
26-
2720
import com.google.common.collect.ImmutableMap;
2821
import com.google.common.collect.ImmutableSet;
2922

@@ -97,7 +90,13 @@
9790
import java.util.stream.Collectors;
9891
import java.util.stream.Stream;
9992

93+
import static java.util.Collections.singleton;
94+
import static java.util.concurrent.TimeUnit.SECONDS;
10095
import static java.util.logging.Level.SEVERE;
96+
import static org.openqa.selenium.remote.CapabilityType.LOGGING_PREFS;
97+
import static org.openqa.selenium.remote.CapabilityType.PLATFORM;
98+
import static org.openqa.selenium.remote.CapabilityType.PLATFORM_NAME;
99+
import static org.openqa.selenium.remote.CapabilityType.SUPPORTS_JAVASCRIPT;
101100

102101
@Augmentable
103102
public class RemoteWebDriver implements WebDriver,
@@ -837,6 +836,9 @@ public Timeouts timeouts() {
837836
return new RemoteTimeouts();
838837
}
839838

839+
/**
840+
* @deprecated Will be removed. IME is not part of W3C WebDriver and does not work on browsers.
841+
*/
840842
@Override
841843
public ImeHandler ime() {
842844
return new RemoteInputMethodManager();
@@ -848,6 +850,9 @@ public Window window() {
848850
return new RemoteWindow();
849851
}
850852

853+
/**
854+
* @deprecated Will be removed. IME is not part of W3C WebDriver and does not work on browsers.
855+
*/
851856
protected class RemoteInputMethodManager implements WebDriver.ImeHandler {
852857

853858
@Override

java/src/org/openqa/selenium/support/events/EventFiringWebDriver.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,9 @@ public Timeouts timeouts() {
660660
return new EventFiringTimeouts(options.timeouts());
661661
}
662662

663+
/**
664+
* @deprecated Will be removed. IME is not part of W3C WebDriver and does not work on browsers.
665+
*/
663666
@Override
664667
public ImeHandler ime() {
665668
return options.ime();

0 commit comments

Comments
 (0)