I have requirement to verify the text box is focused and keyboard is displayed when click on comment button.
but i have disabled the keyboard by using below capabilities in suite level(permanently disabled keyboard for all scripts).
capabilities.setCapability(“unicodeKeyboard”, true);
capabilities.setCapability(“resetKeyboard”, true);
now I required for one test script to verify the keyboard.please help me on this.(is there any specific method to enable the keyboard at script level)
Sorry, Actually in my framework we are giving the capabilities at suite level and we are creating the new driver for each script with same capabilities.So we can’t modify the capabilities at the script level.
((AndroidDriver) driver).isKeyboardShown(); this method is not available in appium-java client 4.1.2 version and I am able to see this method in appium java-client 5.1.9 beta.
Hi Aleksei,
are you suggesting to kill driver at end of the test class file and create a new driver ? could you quote example of approach you have taken.
@Aleksei
I tried switching between Appium and Android driver by closing Appium Service and calling quit on driver but it does not works, however closing and opening same driver type (Android driver) works fine.
After lot of struggle i found one solution in application manager one application will be downloaded you can unintall that it show the keyboard back again.