Python: Sending text via iOS keyboard without an element

I’m running into a situation where I have to tap coordinates to activate an email field because there is no element for me to select. Once I tap the email field, the iOS keyboard pops up.

How can I enter a string into the active field without using any kind of element selector?

Can you try this, pasting from Stackoverflow

from selenium.webdriver.common.action_chains import ActionChains
actions = ActionChains(self.driver)
actions.send_keys('dummydata')
actions.perform()

https://stackoverflow.com/questions/32886927/send-keys-without-specifying-element-in-python-selenium-webdriver

Thank you for the reply!

I tried your suggestion, but ran into this error:

WebDriverException: Message: A new session could not be created. Details: Appium’s IosDriver does not support xcode version 8.3.3. Apple has deprecated UIAutomation. Use the “XCUITest” automationName capability instead.

EDIT: This is a completely unrelated error and everything works now. Thanks!

Glad that it worked for you :slight_smile: