Iam using real ios device to do automation test, when running automation with appium, typing on a textbox always trigger the keyboard, not the same with android where no keyboard triggered. My device is iphone 11 with ios 18, and use python language I did some ways but they didn't work as expect, here are some ways I tried: from appium.webdriver.common.appiumby import AppiumBy from selenium.webdriver.common.keys import Keys textbox = self._driver.find_element(AppiumBy.XPATH,element) textbox.send_keys(text) self._driver.hide_keyboard() or from appium.webdriver.common.appiumby import AppiumBy from selenium.webdriver.common.keys import Keys textbox = self._driver.find_element(AppiumBy.XPATH,element) textbox.send_keys(text).send_keys(Keys.ENTER) #or textbox.send_keys(text).send_keys(Keys.RETURN) #or textbox.send_keys(text+'\n') the first method give error for real iphone. Error Domain=com.facebook.WebDriverAgent Code=1 "Did not know how to dismiss the keyboard. Try to dismiss it in the way supported by your application under test." UserInfo={NSLocalizedDescription=Did not know how to dismiss the keyboard. Try to dismiss it in the way supported by your application under test.} the second method all work but it also call submit the form, example if the current screen has other fields are not entered and there is submit button, doing second method will also submit the form and show error for not typing fiels. Is there any way to dismiss the keyboard and not call submit the form like android does? Continue reading...