Hi,
I’m using Appium with webdriver.io and i encountered a weird issue.
When using XPath to locate a textField element i’m able to input text using setValue with no issue.
When locating the same element using AccessibilityId I get the following error:
invalid element state: Cannot set the element to 'value'. Did you interact with the correct element?
I know i’m interacting with the correct element because clicking on it actually works.
Here’s a sample of my code:
Element:
get email () { return $('~email_textField') }
Click (works):
LoginScreen.email.click()
setValue:
LoginScreen.email.setValue('value')
getText also not working in that scenario.
Any ideas?
Thanks