Sendkeys with Arabic text issue


Dear Aleksei,
I only worked Page objects with Webdriver page object initialization.

I tried the above , currently it throwing me the error

I tried the page initialization using PageFactory.initElements(new AppiumFieldDecorator(driver), this); and
PageFactory.initElements(new AppiumFieldDecorator(driver, 10, TimeUnit.SECONDS), this);.

Both giving same error. Kindly help.

Kindly help.


@semrafi i did not ask you to change in Page something. i have same “initElements” as you are.

public abstract class Page {
    public Page(WebDriver driver) {
        this.driver = driver;
        PageFactory.initElements(new AppiumFieldDecorator(driver, defaultLook, TimeUnit.SECONDS), this);

public class XXXXX_page extends Page {
    @AndroidFindBy (id = "activate_fingerprint")
    private List<AndroidElement> mainContainer;

    public XXXXX_page(WebDriver driver) {

    public boolean tapDeclineButton() {
        System.out.println("  tap Decline button");
        try {
            return tapElement(bottomLayout.findElements(MobileBy.className("android.widget.TextView")).get(1));
        } catch (Exception e) {
            return false;


//test code
public class BaseTest {
    protected static AppiumDriver driver = null;
    protected static AppiumDriver driver_2 = null;

public class xxxxXXXX extends BaseTest {
        xxxPage = new xxxPage(driver);
        assertTrue("'xxxx' screen NOT loaded", xxxPage.isxxxPageLoaded());


Dear Aleksei,
Let me try what is the problem for the above error(java.lang.NoSuchMethodError:;J)V) from my side , If I am unable to solve, Kindly i may need your support more… Thank You so much.


Could anyone please help me, I am still not able to resolve the issue with page factory.
The question may be so basic, Please answer.
Can we have the WebElement and Android Element in the same page and initialize the page using AppiumFieldDecorator.
I am trying in that way and not working , I am not sure whether this is correct. below is the code i used in the page.

The same element i am identifying using the below in same page

public class SelectArea extends BaseClass {

@FindBy(id="com.talabat:id/search_ar") private WebElement  txtSearchAr;
@AndroidFindBy(id="com.talabat:id/search_ar") private AndroidElement txtSearchArAndroidBy;

//and initialize the page by constructor as
public SelectAr(AndroidDriver TestDriver)
driver =TestDriver;
PageFactory.initElements(new AppiumFieldDecorator(driver), this);


And driver initialized as
driver = new AndroidDriver(new URL(“”), capabilities);

Issue I am getting is
at io.appium.java_client.pagefactory.AppiumElementLocator.waitFor(
at io.appium.java_client.pagefactory.AppiumElementLocator.findElement(
at io.appium.java_client.pagefactory.interceptors.InterceptorOfASingleElement.intercept(

Thank You.


Hi I got solved (by upgrading selinium version to the latest one) the above issue with Page Factory initialization for Apps using appium , just commenting here as it would be helpful if anyone else face the same issue.;)Ljava/lang/Object;
The above error will throw if you use maven project with Selinium dependency version 3.2. It isdue to exception from fluent wait.
It is fixed from Selenium version 3.2.0 and above. You can refer the selinium relase note for the same (


Dear Aleksei,
I tried by setting the value using keyword txtSearchArea.setValue(“الشرق”) . But it is not displaying the given value in the Text field ,also no error is getting displayed.
Did any of you could support me to find out the solution. I am really stuck here, as my apps having Arabic version to test.

Highly appreciated you help.



Did you set “true” unicodeKeyboard property when you start driver?


Thanks for the Reply… I didn’t set , Could you share the format , I will try.
Ok I got it. I will try and let you know… Thanks


Yes , I tried now by setting the capability as
capabilities.setCapability(“unicodeKeyboard”, true);

But still it is not displaying the Arabic text value in the text field and no error generated with Appium v1.6.4.


Kindly suggest if I could try with any other way?



Hi Aleksi,
I tried to input Arabic text in the text field with reference to this link , but not working …It fired the below exception : Caused by: java.nio.charset.UnsupportedCharsetException: x-IMAP-mailbox-name
at java.nio.charset.Charset.forName(
at com.helperAPI.UnicodeEncoder.(


@semrafi never tried Arabic for EDIT (only for search) . try also:

(Alternatively, on the device, access Settings, then Language & Input. Make sure Appium Android Input Manager for Unicode is selected, and finally go to Default and set it to Appium Android Input Manager for Unicode.)

maybe you need also try to add ARABIC keyboard and set it as DEFAULT! - just idea.


Thanks for the Reply. I tried in that way only, but not working… Arabic is not getting printed in the Text Area field…


@semrafi ok. i tried myself -

what i did:

  1. added:
capabilities.setCapability("unicodeKeyboard", "true");
  1. email text was updated to “sendKeys”

and it started to work.


Sounds great…But the same I tried and not worked in Samsung S7… Which device you used?


Thanks a lot Aleksei… I am really happy…it started working for me as well in the Real Device…I don’t know what was wrong it didn’t work when i tried yesterday… Anyway thanks…


@semrafi mine test device LG G4. let’s try with Sony M4 - also fine. Samsung S6 - also fine.


thanks a lot man , i tried like you and it work . thanks :kissing_heart::kissing_heart:


Hi Aleksei,
When parsing the Arabic text, keyboard is not displaying but if keyboard is displayed wont parse the text.
Is it the behaviour ?
as i observe it is considering the external keyboard as keyboard input


@suresh_bijjam once again:

  1. add arabic keyboard on device and set it default
  2. add unicode capability to driver
  3. also try tap element before
  4. instead of setValue you can try SendKeys