i tried settext"你好", didn't work, have ideas how set chinese charactors?
uiobject chatbox = mdevice.findobject(new uiselector().resourceid("com.tencent.mm:id/z4")); if (chatbox.waitforexists(2000)==false) { assertfalse("cannot find chatbox option", false); return; } else { chatbox.click(); chatbox.getselector().focused(true); chatbox.settext("tell me joke"); }
either use unicode escape sequences or save java source files in utf-8. in former case, need correct escape sequences, in latter case, can write chinese characters in src code. see here examples utf encoding chinese charactersjava if ui element doesn't correctly display characters, correct font might not available or used.
Comments
Post a Comment