How to dismiss the keyboard in appium using Java?

后端 未结 8 1444
梦如初夏
梦如初夏 2021-01-02 03:02

This code just aims to find the textbox and send some text to it. When it does that the keyboard appears on the android device.How to dismiss it after the sendKeys.

8条回答
  •  余生分开走
    2021-01-02 03:54

    Add these desired capabilities values if you want to disable the keyboard on your android selenium tests.

    capabilities.setCapability("unicodeKeyboard", true);
    capabilities.setCapability("resetKeyboard", true);
    

提交回复
热议问题