Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
585 views
in Technique[技术] by (71.8m points)

appium - ADB input text at email To field with separator does not accepted immediately

I have a problem when automate the step to input email address (long list with email separator ; ) at Android Phone.

When perform this action manually, I do these steps:

At To field, use software keyboard, input [email protected];[email protected];[email protected]

the email address will be accepted the moment I pressed ; I could see the proper oval shape at each address which means email address is accepted.

When I use robot to automate it, I did not see the email address accepted like manual way.

*** Variables ***
${RECIPIENTS}         [email protected];[email protected];[email protected];

*** Test Cases ***
Wait Until Page Contains And Click    ${TO-FIELD}
Run     adb shell input text '${RECIPIENTS}'

I have no idea how to make the automation step behave like manual way, is the way I construct Variable or test step wrong?

I can only able to enter text into the field by using adb shell input text. The robot framework built in 'Input Text' does not accept by the device.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can try as follow and no need to give semicolon . Pressing enter will create a contact bubble and next email id can be given.

solo.sendkeys("[email protected]")

solo.sendKey(Solo.ENTER)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...