How to press a button twice using Google UiAutomator?

前端 未结 5 2161
日久生厌
日久生厌 2021-01-05 09:29

I have the following script for typing \'33\' into the Calculator, in Android, using UiAutomator. However, only the first \'3\' is accepted, the second press is entirely ig

5条回答
  •  旧时难觅i
    2021-01-05 09:40

    Create a UiObject for 3 button and click twice.below is the snippet

    UiObject three = new UiObject(new UiSelector().text("3"));
    three.click();
    three.click();
    

提交回复
热议问题