Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
579 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 Answer

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)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...