I am interested in learning more about the ime() method after reading this question and punching Google search queries around this:
IME - indicates an input / output mechanism. Currently, it seems that this is only supported on the Linux platform and the Firefox browser.
When working with Chinese / Japanese or multibyte characters that should be entered by Selenium in linux, you need to use an input structure, for example, IBus and engines implemented on IBus, such as anthy (Japanese), pinyin (Chinese).
The following code sample is taken from Selenium I18NTest.java , which is looking for an anthy mechanism for entering Japanese characters on a Linux machine.
@NeedsFreshDriver @Ignore(value = {IE, CHROME, FIREFOX}, reason = "Not implemented on anything other than Firefox/Linux at the moment.") @NotYetImplemented(HTMLUNIT) @Test public void testShouldBeAbleToActivateIMEEngine() throws InterruptedException { assumeTrue("IME is supported on Linux only.", TestUtilities.getEffectivePlatform().is(Platform.LINUX)); driver.get(pages.formPage); WebElement input = driver.findElement(By.id("working"));
Caution:. My answer can give a fair idea about ime() , but even more considerations can be improved with selenium committers, as I see that this function is not widely used, and also has limited support (only on Linux).
source share