- Tap on input doesn’t activate keyboard, send_keys does
- Thank you very much for this
I’ve managed to solve it like this:
@staticmethod
def clear_input_field_ios(context):
delete = WebDriverWait(context.driver, 10).until(
EC.presence_of_element_located((AppiumBy.ACCESSIBILITY_ID, 'delete'))
)
delete_count = 40
for _ in range(delete_count):
delete.click()
It’s ugly but it works, what I’m going to do next is get text value from input field, so that I get number of characters and loop on it.
I’ve lost lots of time unsuccessfully getting the text value
el = login_page.input_email()
print(el.text)
—> returns EMAIL_LOGIN to my surprise [check appium inspector image]
print(el.get_attribute('value'))
returns EMAIL_LOGIN
(understandably) because those are the labels I’ve defined in my Flutter app.
I’ve tried also
text = element.get_attribute('innerText')
text = element.get_attribute('textContent')
with no success
If you have any idea of how to get text in this example, I would be really grateful, you guys certainly help me tremendously already!
These are the values from Appium inspector: