문제

I have a problem with typing of special characters into a text field. Usually, I call the function:

UIATarget.localTarget().frontMostApp().typeString("ANYTHING");

But, if there is a character like é to type, it isn´t able to locate it on keyboard. This character can be typed by tapping and holding the e key on the keyboard. Is there another way? Maybe, something like, setting the value of the text field. The text field can be accessed through the index:

UIATarget.localTarget().frontMostApp().mainWindow().searchBars()[0].tap();
도움이 되었습니까?

해결책

UIATarget.localTarget().frontMostApp().mainWindow().searchBars()[0].tap();
UIATarget.localTarget().frontMostApp().mainWindow().searchBars()[0]
    .setValue("é & á");
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top